maven-assembly-plugin icon indicating copy to clipboard operation
maven-assembly-plugin copied to clipboard

[MASSEMBLY-848] Version range dependencies not resolved from the reactor

Open jira-importer opened this issue 8 years ago • 12 comments

Mark Raynsford opened MASSEMBLY-848 and commented

When using modules that have independent version numbers (that is, modules in the same project may have different version numbers), it's commonplace to specify dependencies between modules with version ranges when using semantic versioning.

For some reason, when version ranges are used on dependencies that refer to modules that are part of the project (and therefore should be in the reactor), the assembly plugin ignores them and tries to resolve them from the local repository instead.

The following project reproduces this issue (just "mvn clean package"):

https://github.com/io7m/independent-versioning-20170207

Interestingly, this didn't happen with the same assembly plugin on older Maven versions. Here's a successful build on Travis CI:

https://travis-ci.org/io7m/independent-versioning-20170207


Affects: 3.0.0

Attachments:

Remote Links:

jira-importer avatar Feb 08 '17 11:02 jira-importer