apache / apache/maven-dependency-plugin

[MDEP-736] classifier applyed to other artifactItem

Open
#1,231 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Julien CORON](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=juliencoron)** opened **[MDEP-736](https://issues.apache.org/jira/browse/MDEP-736?redirect=false)** and commented

When I use the plugin in the phase "package" and the goal "copy",  with the artifactItem having the classifier "agent", then the other instance of the plugin with the phase "prepare-package" and the goal "copy-dependencies" on the first artifactItem has the same classifier "agent".

 

Example:

\
\org.apache.maven.plugins\
\maven-dependency-plugin\
\3.2.1\
\
\
\unpack-jolokia\
\package\
\
\copy\
\
\
\
\
\
\
\org.jolokia\
\jolokia-jvm\
\1.6.0\
\jar\
\agent\
\${project.build.directory}/tmp\
\
\
\
\
\
\org.apache.maven.plugins\
\maven-dependency-plugin\
\3.0.0\
\
\
\copy-dependencies\
\prepare-package\
\
\copy-dependencies\
\
\
\${project.build.directory}/tmp\
\false\
\yyyyyyyy\
\
\
\
\unpack-help\
\prepare-package\
\
\unpack\
\
\
\
\
\aa.bbb.cccc\
\xxxxx\
\${xxxxxx.version}\
\jar\
\true\
\${project.build.directory}/classes/xxxxxxx\
\**/*\
\

 

--> This artifactItem will inherit the "classifier" = "agent" property, and should not.

 

---

**Affects:** 3.0.0

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Reproduce the shown Maven configuration with the copy and copy-dependencies executions, then trace how artifactItem configuration is retained between plugin executions. Done means the second execution's artifactItem does not inherit the classifier "agent" from the first.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.