Author: brett
Date: Tue Feb 28 17:03:37 2006
New Revision: 381857

URL: http://svn.apache.org/viewcvs?rev=381857&view=rev
Log:
attach pom, don't deploy it separately

Modified:
    
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java

Modified: 
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java?rev=381857&r1=381856&r2=381857&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
 Tue Feb 28 17:03:37 2006
@@ -177,6 +177,8 @@
                 if( isPomFileExisting() )
                 {
                     pomArtifact = artifactFactory.createArtifact( groupId, 
artifactId, version, null, "pom" );
+                    ArtifactMetadata metadata = new ProjectArtifactMetadata( 
artifact, pomFile );
+                    artifact.addMetadata( metadata );
                 }
             }
 
@@ -192,11 +194,6 @@
                 throw new MojoExecutionException( "No transfer protocol 
found." );
             }
             getDeployer().deploy( file, artifact, deploymentRepository, 
getLocalRepository() );
-
-            if( isPomFileExisting() && generatePom == false )
-            {
-                getDeployer().deploy( pomFile, pomArtifact, 
deploymentRepository, getLocalRepository() );
-            }
         }
         catch ( ArtifactDeploymentException e )
         {


Reply via email to