Skip to content

Move the Plexus Utils 4.x plugin realms to 4.2.0 - #287

Merged
jmanico merged 1 commit into
mainfrom
plexus-utils-4.2.0
Nov 30, 2026
Merged

jmanico merged 1 commit into
mainfrom
plexus-utils-4.2.0

Conversation

@jmanico

@jmanico jmanico commented Nov 30, 2026

Copy link
Copy Markdown
Member

Raises the ten 4.x plugin-realm pins from 4.0.3 to 4.2.0: Clean, Antrun, Source, Javadoc, Checkstyle, Maven Wrapper and Build Helper in the root build, and Checkstyle, Clean and WAR in the Jakarta fixture. The six 3.6 realms stay on 3.6.4, since their plugins resolve the 3.x line without a pin. Dependabot never proposes this move, because its semver-major ignore rule counts from the 3.6 floor.

Security review

  • Advisories: no GitHub or OSV advisory affects 4.2.0. The only one touching 4.x, GHSA-6fmv-xxpf-w3cw, is fixed in 4.0.3. plexus-xml is an optional dependency of 4.2.0, so no realm gains plexus-xml.
  • Provenance: the JAR the build resolved (SHA-256 67a4240e08284c7514bf1e34de349125dfce7a3d1f51aaab32010d5b61df5068) and its POM verify against key 32118CF76C9EC5D918E54967CA80D1F0EB6CA4BA (Sylwester Lachiewicz). The fingerprint is in Apache Maven's KEYS file, and the same key's signatures verify on the Plexus Utils 3.6.4 and plexus-archiver 4.16.0 JARs this build already pins.
  • What it fixes: FileUtils.forceDeleteOnExit and deleteDirectory no longer follow symbolic links out of the tree being deleted, the same fix 3.6.3 gave the 3.x realms.
  • What could change behavior, and why it doesn't here:
    • 4.1.0 stopped DirectoryScanner from excluding .gitignore and .cvsignore by default. This repository's only such files are at the root and in compatibility/, outside every packaged tree.
    • translateCommandline now splits unquoted arguments at tabs and line breaks. The antrun JSP engine passes each argument as a single <arg value>, and no configured argument contains one.
  • New guard: the Plexus Utils policy test now fails if any pin falls in a known advisory range (below 3.6.1 on 3.x, below 4.0.3 on 4.x) or if the realms on one major line disagree. I checked that it fails on a planted 4.0.2 pin.

Compatibility and validation

Local runs used macOS arm64, Homebrew OpenJDK 17.0.21 and the Maven 3.10.2 wrapper.

  • ./mvnw -B -ntp clean verify passes. Clean, Antrun, Source, Javadoc, Checkstyle and Build Helper all ran, and all nine JARs, including source and Javadoc JARs, are byte-identical to main's. The build's warnings and errors are unchanged.
  • ./mvnw -B -ntp clean package -PtestJakarta -DskipTests passes. The WAR's 193 entries match main's by name, size and CRC, except the fixture's own embedded pom.xml.
  • dependency:resolve-plugins -DexcludeTransitive=false, with and without -Psign-artifacts and for the fixture's executed plugins, resolves 4.2.0 in all ten realms, and no realm in an advisory range.
  • The wrapper realm, which the normal build never runs, was exercised in a scratch copy with wrapper:wrapper: it loaded 4.2.0 and regenerated mvnw and mvnw.cmd byte for byte.
  • scripts/tests (39 tests) and compatibility/tests (17 tests) pass.

Not changed: Jar, Compiler, Install, Deploy, Dependency, Site and Bundle are unpinned and resolve 4.0.3 natively, outside the advisory range. Most realms resolve plexus-xml 3.0.1, which no advisory affects.

  • I kept the change scoped and preserved relevant notices.
  • I checked documentation/changelog and tests for any behavior change.
  • This PR contains no credentials or private vulnerability evidence.

Raise the ten 4.x plugin-realm pins from 4.0.3 to 4.2.0, which stops
FileUtils deletes from following symbolic links out of the tree. No
advisory affects 4.2.0; its signature verifies against a key in Apache
Maven's KEYS file. Built JARs are byte-identical and the fixture WAR's
contents are unchanged apart from its own POM. The policy test now also
rejects any pin in a known advisory range and any split within a line.
@jmanico
jmanico requested a review from jeremylong as a code owner November 30, 2026 13:15
@jmanico
jmanico merged commit 68ab840 into main Nov 30, 2026
18 checks passed
@jmanico
jmanico deleted the plexus-utils-4.2.0 branch November 30, 2026 13:19
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