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

dependency:list mismatch with -Dartifact= format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.10
    • None
    • resolve

    Description

      I believe there is a bug in dependency:list. The output format is:

      <groupId>:<artifactId>:<packaging>:<version>

      Most of the other goals, like get and copy expect the artifact coordinates to be of the form:

      <groupId>:<artifactId>:<version>:<packaging>

      This means you cannot easily write a script to use the output of list to resolve artifacts with get or copy and -Dartifact=...

      I believe this is probably a bug in the output of list, but if anybody is relying on it, it might be better to add a new goal which fixes it by default, and has an option to specify the output format.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ctubbsii Christopher Tubbs
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: