Skip to content

[MNG-6965] Drop Maven 2 support - stop injecting old plexus-utils#367

Closed
slachiewicz wants to merge 1 commit intomasterfrom
MNG-6965
Closed

[MNG-6965] Drop Maven 2 support - stop injecting old plexus-utils#367
slachiewicz wants to merge 1 commit intomasterfrom
MNG-6965

Conversation

@slachiewicz
Copy link
Member

@slachiewicz slachiewicz commented Jul 24, 2020

TODO: ITs failed for few test cases: https://builds.apache.org/view/M-R/view/Maven/job/maven-box/job/maven/job/MNG-6965/


This change is Reviewable

@slachiewicz slachiewicz marked this pull request as draft August 4, 2020 15:24
@michael-o michael-o marked this pull request as ready for review October 4, 2020 19:40
@asfgit asfgit closed this in c61e630 Oct 5, 2020
@michael-o michael-o deleted the MNG-6965 branch October 9, 2020 18:24
asfgit pushed a commit that referenced this pull request Jun 17, 2022
asfgit pushed a commit that referenced this pull request Jun 24, 2022
asfgit pushed a commit that referenced this pull request Jun 24, 2022
@jira-importer
Copy link

Resolve #8076

dupondje added a commit to oVirt/ovirt-engine that referenced this pull request Dec 11, 2025
On maven 3.6.3 (CentOs9), plexus-utils 1.1 is injected by default [1].
This conflicts with maven 3.9.9 on CentOS 10, as there it doesn't inject
plexus-utils 1.1. [2]

When ovirt-engine-build-dependencies srpm is build on CentOS 10, but
used on CentOS 9, the build fails because it's missing plexus-utils 1.1.

Fix this by adding a versioned plexus-utils depends on
maven-surefire-plugin. Then the correct version gets pulled in, and same
dependencies exist for centos9 or centos10.

[1]: https://github.com/apache/maven/blob/maven-3.6.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java#L32-L37
[2]: apache/maven#367

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
dupondje added a commit to oVirt/ovirt-engine that referenced this pull request Dec 11, 2025
On maven 3.6.3 (CentOs9), plexus-utils 1.1 is injected by default [1].
This conflicts with maven 3.9.9 on CentOS 10, as there it doesn't inject
plexus-utils 1.1. [2]

When ovirt-engine-build-dependencies srpm is build on CentOS 10, but
used on CentOS 9, the build fails because it's missing plexus-utils 1.1.

Fix this by adding a versioned plexus-utils depends on
maven-surefire-plugin. Then the correct version gets pulled in, and same
dependencies exist for centos9 or centos10.

[1]: https://github.com/apache/maven/blob/maven-3.6.3/maven-core/src/main/java/org/apache/maven/plugin/internal/PlexusUtilsInjector.java#L32-L37
[2]: apache/maven#367

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
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.

3 participants