You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/04/17 12:21:42 UTC

[jira] [Commented] (MDEP-533) dependency:list mismatch with -Dartifact= format

    [ https://issues.apache.org/jira/browse/MDEP-533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971010#comment-15971010 ] 

Michael Osipov commented on MDEP-533:
-------------------------------------

Just checked the issue, the output is generated by {{DefaultArtifact#toString()}}. The format of {{get}}, {{unpack}}, {{copy}} is {{groupId:artifactId:version[:packaging[:classifier]]}}. I am reluctant to change this, but we could consider an artifactInputFormat with predefines. Are you willing to contribute?

> dependency:list mismatch with -Dartifact= format
> ------------------------------------------------
>
>                 Key: MDEP-533
>                 URL: https://issues.apache.org/jira/browse/MDEP-533
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: resolve
>    Affects Versions: 2.10
>            Reporter: Christopher Tubbs
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)