You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2013/05/11 13:14:43 UTC
svn commit: r1481292 -
/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java
Author: hboutemy
Date: Sat May 11 11:14:43 2013
New Revision: 1481292
URL: http://svn.apache.org/r1481292
Log:
[MDEP-411] if useRepositoryLayout, don't copy pom to output root since it has been done in the repo during artifact install
Modified:
maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java
Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java?rev=1481292&r1=1481291&r2=1481292&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/CopyDependenciesMojo.java Sat May 11 11:14:43 2013
@@ -136,7 +136,7 @@ public class CopyDependenciesMojo
getLog().info( artifact.getFile().getName() + " already exists in destination." );
}
- if ( isCopyPom() )
+ if ( isCopyPom() && !useRepositoryLayout )
{
copyPoms( getOutputDirectory(), artifacts, this.stripVersion );
copyPoms( getOutputDirectory(), skippedArtifacts,
@@ -144,6 +144,12 @@ public class CopyDependenciesMojo
}
}
+ /**
+ * install the artifact and the corresponding pom if copyPoms=true
+ *
+ * @param artifact
+ * @param targetRepository
+ */
private void installArtifact( Artifact artifact, ArtifactRepository targetRepository )
{
try