[
https://jira.codehaus.org/browse/MDEP-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352634#comment-352634
]
Thomas Wabner commented on MDEP-446:
------------------------------------
ah, ok.
Whats about using the -Dartifact variable an add this as a optional additional
parameter like:
-Dartifact=groupid:artifactId:version:war:destFileName
If the destFilename is not given as an parameter value for the 'artifact'
parameter, the standard behaviour can be used.
>From my understanding, the 'artifact' cmd parameter is more or less a
>representation for <artifactItem>. I do not know, if I can give more than one
>'artifact' parameter.
> make <destFileName> available on command line for dependency:copy
> -----------------------------------------------------------------
>
> Key: MDEP-446
> URL: https://jira.codehaus.org/browse/MDEP-446
> Project: Maven Dependency Plugin
> Issue Type: Improvement
> Components: copy
> Affects Versions: 2.8
> Reporter: Thomas Wabner
> Fix For: more-investigation
>
>
> It would be nice to be able to specify the destFileName as parameter on
> commandline, to copy a dependency.
> This is currently only supported in the pom.xml configuration section for the
> dependency plugin like:
> <artifactItems>
> <artifactItem>
> <groupId>${project.groupId}</groupId>
> <artifactId>${project.artifactId}</artifactId>
> <version>${project.version}</version>
> <type>${project.packaging}</type>
>
> <destFileName>${project.build.finalName}.${project.packaging}</destFileName>
> <overWrite>true</overWrite>
> </artifactItem>
> </artifactItems>
> We want to have a option on command line, to specify the destFileName with a
> parameter.
> For example:
> mvn dependency:copy -Dartifact=groupid:artifactId:version:war
> -Dmdep.stripVersion=true -DoutputDirectory=/temp/
> -Dartifact.destFileName=result.war
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)