Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-7

[dependency-maven-plugin] ClassCastException caused by DefaultArtifact vs. ActiveProjectArtifact

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0-alpha-1
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              trygvis Trygve Laugstol
              schulte77 Christian Schulte
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: