Skip to content

[MNG-8645] Plugins resolving doesn't use dependency management for plugin project #9663

@jira-importer

Description

@jira-importer

Slawomir Jaranowski opened MNG-8645 and commented

example in maven-jar-plugin (3.x) we have dependencyManagement for commons-io

https://github.com/apache/maven-jar-plugin/blob/08cea8ed3caf1c7f6575b8392d4fc1396f24a09c/pom.xml#L82

Maven 3.9.x and rc-2 resolve as:

[DEBUG] org.apache.maven.plugins:maven-jar-plugin:jar:3.4.3-SNAPSHOT
[DEBUG] +- org.apache.maven.shared:file-management:jar:3.1.0 [compile]
[DEBUG] |  +- org.codehaus.plexus:plexus-utils:jar:4.0.1 [compile]
[DEBUG] |  \- commons-io:commons-io:jar:2.16.1 [compile]
[DEBUG] +- org.apache.maven:maven-archiver:jar:3.6.2 [compile]
[DEBUG] |  \- org.codehaus.plexus:plexus-interpolation:jar:1.27 [compile]
[DEBUG] +- org.codehaus.plexus:plexus-archiver:jar:4.9.2 [compile]
[DEBUG] |  +- org.codehaus.plexus:plexus-io:jar:3.4.2 [compile]
[DEBUG] |  +- org.apache.commons:commons-compress:jar:1.26.1 [compile]
[DEBUG] |  |  \- org.apache.commons:commons-lang3:jar:3.14.0 [compile]
[DEBUG] |  +- commons-codec:commons-codec:jar:1.16.1 [compile]
[DEBUG] |  +- org.iq80.snappy:snappy:jar:0.4 [compile]
[DEBUG] |  +- org.tukaani:xz:jar:1.9 [runtime]
[DEBUG] |  \- com.github.luben:zstd-jni:jar:1.5.5-11 [runtime]
[DEBUG] +- javax.inject:javax.inject:jar:1 [compile]
[DEBUG] \- org.slf4j:slf4j-api:jar:1.7.36 [compile]

but for rc-3 we have:

[DEBUG] org.apache.maven.plugins:maven-jar-plugin:jar:3.4.3-SNAPSHOT
[DEBUG] +- org.apache.maven.shared:file-management:jar:3.1.0 [compile]
[DEBUG] |  +- org.codehaus.plexus:plexus-utils:jar:3.4.2 [compile]
[DEBUG] |  \- commons-io:commons-io:jar:2.11.0 [compile]
[DEBUG] +- org.apache.maven:maven-archiver:jar:3.6.2 [compile]
[DEBUG] |  \- org.codehaus.plexus:plexus-interpolation:jar:1.27 [compile]
[DEBUG] +- org.codehaus.plexus:plexus-archiver:jar:4.9.2 [compile]
[DEBUG] |  +- org.codehaus.plexus:plexus-io:jar:3.4.2 [compile]
[DEBUG] |  +- org.apache.commons:commons-compress:jar:1.26.1 [compile]
[DEBUG] |  |  \- org.apache.commons:commons-lang3:jar:3.14.0 [compile]
[DEBUG] |  +- commons-codec:commons-codec:jar:1.16.1 [compile]
[DEBUG] |  +- org.iq80.snappy:snappy:jar:0.4 [compile]
[DEBUG] |  +- org.tukaani:xz:jar:1.9 [runtime]
[DEBUG] |  \- com.github.luben:zstd-jni:jar:1.5.5-11 [runtime]
[DEBUG] +- javax.inject:javax.inject:jar:1 [compile]
[DEBUG] \- org.slf4j:slf4j-api:jar:1.7.36 [compile]

commons-io and plexus-utils have defined versions in dependency management but it is not taken into account.


Affects: 4.0.0-rc-3

Remote Links:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions