You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MDEP-590] dependency:copy confused when asked to copy artifact with classifier and extension .POM #1024
The MOJO will fail to copy the artifact with classifier=custom, type=pom but will instead copy the primary .POM artifact. However, things are ok when type is set to xml instead of pom.
It seems the mojo totally ignores the classifier whenever the type is pom...
I have attached a sample project made of two modules to reproduce the issue.
The first module has an additional artifact of type pom and classifier custom attached to it via the build-helper-maven-plugin
The second module attempts to copy that additional artifact with the maven-dependency-plugin.
Run it with mvn package. The result of the copy is in module-b/target/copied-custom.pom.
It is ecpected this file is a copy of module-a/custom.xml but is actually a copy of the primary pom, ie module-a/pom.xml.
Activity