Author: trygvis Date: Thu Jul 6 03:57:43 2006 New Revision: 419517 URL: http://svn.apache.org/viewvc?rev=419517&view=rev Log: Fixing MDEP-7: "ClassCastException caused by DefaultArtifact vs. ActiveProjectArtifact" Patch by Christian Schulte. Changed the patch a bit as the plugin has moved to Apache since the patch was created. o Replacing a cast to DefaultArtifact to Artifact.
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=419517&r1=419516&r2=419517&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 Thu Jul 6 03:57:43 2006 @@ -61,7 +61,7 @@ for ( Iterator i = artifacts.iterator(); i.hasNext(); ) { - copyArtifact( (DefaultArtifact) i.next(), this.stripVersion ); + copyArtifact( (Artifact) i.next(), this.stripVersion ); } }