Skip to content

[MDEP-976] - Fail on copy-dependencies destination collisions - #1777

Open
efegokdemir wants to merge 1 commit into
apache:masterfrom
efegokdemir:efe/mdep-976-overwrite
Open

efegokdemir wants to merge 1 commit into
apache:masterfrom
efegokdemir:efe/mdep-976-overwrite

Conversation

@efegokdemir

Copy link
Copy Markdown

When two resolved artifacts map to the same destination file, copy-dependencies currently warns and overwrites the earlier artifact. This change checks normalized destination paths and fails before copying when a collision is found; the integration test verifies that the error identifies both artifacts and that the conflicting JAR is not written.

The focused Invoker test and full unit suite passed: 594 unit tests (0 failures, 0 errors, 1 skipped) and 1 passing integration test.

Fixes #1476


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MDEP-976] artifactId is not guaranteed to be globally unique

1 participant