Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump plexus-utils from 3.5.1 to 4.0.0 #5725

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 23, 2023

Bumps plexus-utils from 3.5.1 to 4.0.0.

Release notes

Sourced from plexus-utils's releases.

4.0.0

📦 Dependency updates

👻 Maintenance

Commits
  • 0803079 [maven-release-plugin] prepare release plexus-utils-4.0.0
  • b342c7c Switch to released version of plexus-xml 4.0.0
  • 968a069 Reformat using spotless:apply
  • 4315308 Update to parent 13
  • 0a84396 Fix SCM information (#254)
  • 14ac2e1 Fix non contiguous imports (#255)
  • 3bd741d Fix false difference detected with CachingOutputStream/CachingWriter when str...
  • b4ee91f Switch to junit 5 (#245)
  • 60b1b79 Remove unused/unmaintained jira export (#247)
  • cbca15a Switch build ci workflow to master branch (#250)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [plexus-utils](https://github.com/codehaus-plexus/plexus-utils) from 3.5.1 to 4.0.0.
- [Release notes](https://github.com/codehaus-plexus/plexus-utils/releases)
- [Commits](codehaus-plexus/plexus-utils@plexus-utils-3.5.1...plexus-utils-4.0.0)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-utils
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies java Pull requests that update Java code labels May 23, 2023
@aikebah aikebah modified the milestone: 8.3.2 Jun 22, 2023
@boring-cyborg boring-cyborg bot added the maven changes to the maven plugin label Jun 30, 2023
@nhumblot
Copy link
Collaborator

Hi 👋

I fixed the pipeline by changing the dependency. The classes used by the maven plugin got moved to a new plexus-xml artifact. I am not approving this PR as I have committed on the branch but LGTM. 🙂

@aikebah aikebah added this to the 8.3.2 milestone Jul 2, 2023
@aikebah
Copy link
Collaborator

aikebah commented Jul 2, 2023

@nhumblot The plexus-utils dependency was not only there to satisfy implementation needs, but also as an override to override the vulnerable transitive dependency versions of it

plexus-utils-3.0.10.jar (pkg:maven/org.codehaus.plexus/[email protected], cpe:2.3:a:plexus-utils_project:plexus-utils:3.0.10:*:*:*:*:*:*:*, cpe:2.3:a:utils_project:utils:3.0.10:*:*:*:*:*:*:*) : CVE-2017-1000487

So plexus-utils at 4.0.1 should remain included with the 'override vulnerable transitive dependency' comment

The transitive dependencies can be found using mvn dependency:tree -Dincludes=org.codehaus.plexus:plexus-utils

[INFO] --- dependency:3.5.0:tree (default-cli) @ dependency-check-core ---
[INFO] org.owasp:dependency-check-core:jar:8.2.2-SNAPSHOT
[INFO] \- org.apache.maven.scm:maven-scm-provider-cvsexe:jar:1.8.1:test
[INFO]    \- org.codehaus.plexus:plexus-utils:jar:3.0.7:test
...
[INFO] --- dependency:3.5.0:tree (default-cli) @ dependency-check-maven ---
[INFO] org.owasp:dependency-check-maven:maven-plugin:8.2.2-SNAPSHOT
[INFO] \- org.apache.maven:maven-settings:jar:3.1.0:provided
[INFO]    \- org.codehaus.plexus:plexus-utils:jar:3.0.10:compile

Besides those I'm not so sure whether it would be a good idea to onboard on this major now, as it depends on alpha versions of Maven 4 libraries.

[INFO] +- org.codehaus.plexus:plexus-xml:jar:4.0.1:compile
[INFO] |  \- org.apache.maven:maven-xml-impl:jar:4.0.0-alpha-5:compile
[INFO] |     \- org.apache.maven:maven-api-xml:jar:4.0.0-alpha-5:compile
[INFO] |        \- org.apache.maven:maven-api-meta:jar:4.0.0-alpha-5:compile

@aikebah aikebah removed this from the 8.3.2 milestone Jul 2, 2023
@nhumblot nhumblot force-pushed the dependabot/maven/org.codehaus.plexus-plexus-utils-4.0.0 branch from 8009687 to 3ab25dc Compare July 2, 2023 14:33
@nhumblot nhumblot force-pushed the dependabot/maven/org.codehaus.plexus-plexus-utils-4.0.0 branch from 3ab25dc to 2713505 Compare July 2, 2023 14:35
Copy link
Collaborator

@aikebah aikebah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Going by maven's own plugins adopting plexus 4.x on plugins targeting Maven 3.x is fine, already done in e.g. https://github.com/apache/maven-plugin-tools/tree/maven-plugin-tools-3.9.0 and https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.3.1

@aikebah aikebah added this to the 8.3.2 milestone Jul 2, 2023
@aikebah aikebah merged commit a7004d6 into main Jul 2, 2023
7 checks passed
@dependabot dependabot bot deleted the dependabot/maven/org.codehaus.plexus-plexus-utils-4.0.0 branch July 2, 2023 14:51
@nhumblot
Copy link
Collaborator

nhumblot commented Jul 2, 2023

@aikebah 👋

Thank you for the pointer. When looking at it, we may be able to upgrade the maven.api.version property to the latest stable version, which should make the transitive dependency override unnecessary. 🤔

Would you like me to track this in an issue and submit a PR for it?

@aikebah
Copy link
Collaborator

aikebah commented Jul 2, 2023

@nhumblot maven.api.version should be kept in-sync with the minimum maven version that we support in the plugin

<prerequisites>
<maven>3.1.0</maven>
</prerequisites>

It would be good though to make this link explicit and use the property in that spot.

But I think we could go with the same policy as the maven community itself which is nowadays taken maven 3.2.5 API compatibility backward compatibility support for current plugins. (which would still require the dependencyManagement override for plexus-utils)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies java Pull requests that update Java code maven changes to the maven plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants