Skip to content

Coping with non-unique dependency jar names#261

Open
therealryan wants to merge 2 commits into
moditect:mainfrom
therealryan:main
Open

Coping with non-unique dependency jar names#261
therealryan wants to merge 2 commits into
moditect:mainfrom
therealryan:main

Conversation

@therealryan

Copy link
Copy Markdown

There's no guarantee that the artifactId+version of a dependency is unique, so CreateRuntimeImage's dependency inclusion behaviour of copying jars into a single directory is failure-prone: projects with dependencies that differ only by their groupId will provoke a java.nio.file.FileAlreadyExistsException.

This change will detect such cases and prepend the groupId to the destination jar name.

A related problem also exists in AddModuleInfo - ideally it'd have an option akin to dependency:copy's prependGroupId

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.

1 participant