You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by br...@apache.org on 2005/03/16 02:26:32 UTC

cvs commit: maven-components/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install AbstractInstallMojo.java InstallPomMojo.java

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() );