ClassCastException in project with sub-projects
-----------------------------------------------
Key: MDEP-6
URL: http://jira.codehaus.org/browse/MDEP-6
Project: Maven 2.x Dependency Plugin
Type: Bug
Environment: JDK1.5
Reporter: Fredrik Holmqvist
Priority: Critical
Attachments: castToArtifactInstead.patch
When a sub-project tries to copy dependencies from another sub-project some of
the artifacts are ActiveProjectArtifact's which doesn't cast to DefaultArtifact
but to Artifact. Changing the casting fixes that.
[INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
[INFO] Including Transitive Dependencies.
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] org.apache.maven.project.artifact.ActiveProjectArtifact
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException:
org.apache.maven.project.artifact.ActiveProjectArtifact
at
org.codehaus.mojo.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:63)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira