Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.8
-
None
Description
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