apache / apache/maven-dependency-plugin
[MDEP-801] includeClassifers not working ?
- Dominant language
- Java
- Stars
- 175
- Forks
- 196
- Avg merge
- 19h 30m
- Merged PRs (30d)
- 5
Description
**[François Régnier](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER288343)** opened **[MDEP-801](https://issues.apache.org/jira/browse/MDEP-801?redirect=false)** and commented
Hello,
I want to copy dependencies with several classifiers.
A working solution is:
```java
org.apache.maven.plugins
maven-dependency-plugin
${dependency.plugin.version}
download-escrow-sources
copy-dependencies
package
runtime
sources
${project.build.directory}/escrow-sources
com.xxx,com.yyy
true
true
download-escrow-scripts
copy-dependencies
package
runtime
scripts
${project.build.directory}/escrow-sources
com.xxx,com.yyy
true
true
```
But rather than duplicate the executions, i think i can use the includeClassifers:
```java
org.apache.maven.plugins
maven-dependency-plugin
${dependency.plugin.version}
download-escrow-sources
copy-dependencies
package
runtime
scripts,sources
${project.build.directory}/escrow-sources
com.xxx,com.yyy
true
true
```
But in this second case only "scripts" classifiers are copied and "sources" are missing.
Is there a bug ? Or do i misunderstood something ?
Thanks,
François
---
**Affects:** 3.3.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the maven-dependency-plugin implementation of the copy-dependencies goal and its includeClassifiers configuration, then reproduce the issue using the two configurations shown for version 3.3.0. Done means a single execution copies both the scripts and sources classifiers for the selected dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100