You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2014/09/06 15:25:37 UTC

svn commit: r1622859 - /maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java

Author: khmarbaise
Date: Sat Sep  6 13:25:36 2014
New Revision: 1622859

URL: http://svn.apache.org/r1622859
Log:
[MDEP-448]
 - NPE prevented cause don't access the file attribute of the 
   artifact which can be null under different circumstances.

Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java

Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java?rev=1622859&r1=1622858&r2=1622859&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/fromDependencies/CopyDependenciesMojo.java Sat Sep  6 13:25:36 2014
@@ -153,7 +153,7 @@ public class CopyDependenciesMojo
         Set<Artifact> skippedArtifacts = dss.getSkippedDependencies();
         for ( Artifact artifact : skippedArtifacts )
         {
-            getLog().info( artifact.getFile().getName() + " already exists in destination." );
+            getLog().info( artifact.getId() + " already exists in destination." ) ;
         }
 
         if ( isCopyPom() && !useRepositoryLayout )