You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Trygve Laugstol (JIRA)" <ji...@codehaus.org> on 2006/07/06 12:58:22 UTC
[jira] Closed: (MDEP-7) [dependency-maven-plugin]
ClassCastException caused by DefaultArtifact vs. ActiveProjectArtifact
[ http://jira.codehaus.org/browse/MDEP-7?page=all ]
Trygve Laugstol closed MDEP-7:
------------------------------
Assign To: Trygve Laugstol (was: Brian Fox)
Resolution: Fixed
Patch applied.
> [dependency-maven-plugin] ClassCastException caused by DefaultArtifact vs. ActiveProjectArtifact
> ------------------------------------------------------------------------------------------------
>
> Key: MDEP-7
> URL: http://jira.codehaus.org/browse/MDEP-7
> Project: Maven 2.x Dependency Plugin
> Type: Bug
> Reporter: Christian Schulte
> Assignee: Trygve Laugstol
> Priority: Trivial
> Attachments: ActiveProjectArtifact.patch
>
>
> I reproducible got a ClassCastException during copy-dependencies goal. There is a cast to DefaultArtifact which fails if the actual instance is ActiveProjectArtifact which does not extend DefaultArtifact. After patching the plugin and trying the old version again to verify reproducibility the exception magically never appeared again so I cannot reproduce the stacktrace somehow. However, the cast to DefaultArtifact can be changed to Artifact, I think.
--
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