Skip to content

[MDEP-776] copy-dependencies overwrites artifacts of the same artifact id #1283

Description

@jira-importer

Nikolaos Georgiou opened MDEP-776 and commented

We have a project which has 2 dependencies of different groupId but same artifactId and version, e.g. com.acme:foo:1.2.3 and com.ecorp:foo:1.2.3

We use the copy-dependencies goal of the plugin to copy libraries under target/lib folder.

Actual Result:

  • only one foo.jar survives in the target/lib folder. The other one silently gets overwritten. This leads to difficult to diagnose runtime errors, as one JAR is missing.

 

Expected Result:

  • it should at least give a warning, if not an error, that it has overwritten an artifact during this process

 

Known workaround:

  • we activated useRepositoryLayout, which allows both artifacts to survive under a directory structure, which complicates a bit our classpath building process (from target/lib/* we need to find all the JARs with a bit of bash glue)

 


Affects: 3.1.2, 3.2.0

Issue Links:

  • MDEP-772 "failOnDuplicates" option for "unpack" goal

Remote Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions