maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy AbstractDeployMojo.java DeployPomMojo.java
Date Wed, 16 Mar 2005 01:27:37 GMT
brett       2005/03/15 17:27:37

  Modified:    maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy
                        AbstractDeployMojo.java
  Removed:     maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy
                        DeployPomMojo.java
  Log:
  handle POMs correctly
  
  Revision  Changes    Path
  1.7       +2 -7      maven-components/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
  
  Index: AbstractDeployMojo.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractDeployMojo.java	15 Mar 2005 21:41:03 -0000	1.6
  +++ AbstractDeployMojo.java	16 Mar 2005 01:27:37 -0000	1.7
  @@ -73,11 +73,6 @@
       extends AbstractPlugin
   {
   
  -    protected boolean isPom()
  -    {
  -        return false;
  -    }
  -
       public void execute( PluginExecutionRequest request, PluginExecutionResponse response
)
           throws Exception
       {
  @@ -122,7 +117,7 @@
           artifactDeployer.deploy( pom, pomArtifact, deploymentRepository );
   
           //Deploy artifact
  -        if ( !isPom() )
  +        if ( !"pom".equals( project.getPackaging() ) )
           {
               Artifact artifact = new DefaultArtifact( project.getGroupId(), project.getArtifactId(),
                                                        project.getVersion(), project.getPackaging()
);
  
  
  

Mime
View raw message