apache / apache/maven-dependency-plugin
[MDEP-446] make <destFileName> available on command line for dependency:copy
- Dominant language
- Java
- Stars
- 175
- Forks
- 196
- Avg merge
- 19h 30m
- Merged PRs (30d)
- 5
Description
**[Thomas Wabner](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=waffel)** opened **[MDEP-446](https://issues.apache.org/jira/browse/MDEP-446?redirect=false)** and commented
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:
```xml
${project.groupId}
${project.artifactId}
${project.version}
${project.packaging}
${project.build.finalName}.${project.packaging}
true
```
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
---
**Affects:** 2.8
1 votes, 3 watchers
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the dependency:copy command-line parameter handling and compare it with the artifactItems configuration shown in the issue. Trace how artifact.destFileName, stripVersion, and outputDirectory are interpreted. Done means the command example can select result.war as the copied filename while retaining the existing POM configuration behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100