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-install-plugin/src/main/java/org/apache/maven/plugin/install AbstractInstallMojo.java InstallPomMojo.java
Date Wed, 16 Mar 2005 01:26:32 GMT
brett       2005/03/15 17:26:32

  Modified:    maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install
                        AbstractInstallMojo.java
  Removed:     maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install
                        InstallPomMojo.java
  Log:
  handle POM properly
  
  Revision  Changes    Path
  1.3       +2 -7      maven-components/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
  
  Index: AbstractInstallMojo.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractInstallMojo.java	10 Mar 2005 01:35:24 -0000	1.2
  +++ AbstractInstallMojo.java	16 Mar 2005 01:26:32 -0000	1.3
  @@ -35,11 +35,6 @@
       extends AbstractPlugin
   {
   
  -    protected boolean isPom()
  -    {
  -        return false;
  -    }
  -
       public void execute( PluginExecutionRequest request, PluginExecutionResponse response
)
           throws Exception
       {
  @@ -58,7 +53,7 @@
           artifactInstaller.install( pom, pomArtifact, localRepository );
   
           //Install artifact
  -        if ( !isPom() )
  +        if ( !"pom".equals( project.getPackaging() ) )
           {
               Artifact artifact = new DefaultArtifact( project.getGroupId(), project.getArtifactId(),
                                                        project.getVersion(), project.getPackaging()
);
  
  
  

Mime
View raw message