From 99f8b31240056043b56bfd0589c02791dac7c2fa Mon Sep 17 00:00:00 2001 From: Jim Manico Date: Mon, 23 Nov 2026 18:45:11 +0700 Subject: [PATCH 1/2] Move the Maven wrapper to 3.10.2 --- .mvn/wrapper/maven-wrapper.properties | 4 ++-- BUILDING.md | 6 +++--- README.md | 2 +- RELEASING.md | 2 +- pom.xml | 2 +- scripts/check-reproducible.py | 2 +- scripts/check-wrapper.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 058db7b..df6d494 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,4 +1,4 @@ wrapperVersion=3.3.4 distributionType=only-script -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.10.1/apache-maven-3.10.1-bin.zip -distributionSha256Sum=9c1ef9174ef250a5009ed0dec97cbe8699acf7479add4e62bf7b0ea791c0adb5 +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.10.2/apache-maven-3.10.2-bin.zip +distributionSha256Sum=7d69999d218e025cf1c14691ba748a09706e47999bd505009403cef9d757c2df diff --git a/BUILDING.md b/BUILDING.md index a521888..c6ea125 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -2,13 +2,13 @@ Use JDK 17+ and the committed `./mvnw` (`mvnw.cmd` on Windows). The wrapper is Apache Maven Wrapper 3.3.4's unmodified `only-script` distribution; no wrapper -JAR executes before the download check. It pins Maven 3.10.1 and its SHA-256. +JAR executes before the download check. It pins Maven 3.10.2 and its SHA-256. The downloaded Maven ZIP was independently compared to the SHA-512 served at -[Apache's distribution site](https://downloads.apache.org/maven/maven-3/3.10.1/binaries/). +[Apache's distribution site](https://downloads.apache.org/maven/maven-3/3.10.2/binaries/). The separate [Maven Wrapper 3.3.4 only-script archive](https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper-distribution/3.3.4/maven-wrapper-distribution-3.3.4-only-script.zip) (`maven-wrapper-distribution-3.3.4-only-script.zip`) has SHA-256 `6cb584c2bc907b849a0b931d8266d3ff3214cdd3127115ed4f49fb7176413d36`. -The Maven 3.10.1 ZIP checksum is recorded in +The Maven 3.10.2 ZIP checksum is recorded in [the wrapper configuration](.mvn/wrapper/maven-wrapper.properties). Both bootstrap paths are CI gates, including a deliberately wrong checksum with an empty wrapper cache. `.mvn/maven.config` requires strict transfer checksums. diff --git a/README.md b/README.md index 4fbb316..0302349 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ container or downstream dependency combination. ## Building and contributing -Build with JDK 17 and the committed wrapper (Maven 3.10.1); use `mvnw.cmd` on Windows: +Build with JDK 17 and the committed wrapper (Maven 3.10.2); use `mvnw.cmd` on Windows: ```sh ./mvnw clean verify diff --git a/RELEASING.md b/RELEASING.md index 41e1e31..83f7f5d 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -55,7 +55,7 @@ existing Maven version. ## Prepare and verify 1. Use a clean checkout, **Eclipse Temurin 17.0.20.1+1** and the committed - wrapper (**Maven 3.10.1**). The signing profile enforces vendor, exact runtime + wrapper (**Maven 3.10.2**). The signing profile enforces vendor, exact runtime and Maven versions, and a non-SNAPSHOT project version. Ordinary builds allow JDK 17+; the release path is stricter because javac output changes on newer JDKs. Record the full Git commit and operating system/architecture. Build with a fresh Maven local repository so diff --git a/pom.xml b/pom.xml index a7f3b57..10ccbc7 100644 --- a/pom.xml +++ b/pom.xml @@ -650,7 +650,7 @@ Eclipse Adoptium java.runtime.version17\.0\.20\.1\+1 - [3.10.1] + [3.10.2] diff --git a/scripts/check-reproducible.py b/scripts/check-reproducible.py index 1009158..06c122b 100644 --- a/scripts/check-reproducible.py +++ b/scripts/check-reproducible.py @@ -66,7 +66,7 @@ def main(): raise ValueError('Expected thirteen release payload files') results.append(hashes) differences = [name for name in results[0] if results[0][name] != results[1][name]] - report = {'commit': commit, 'java': props, 'maven': '3.10.1', + report = {'commit': commit, 'java': props, 'maven': '3.10.2', 'hashes': results, 'differences': differences} (directory / 'comparison.json').write_text(json.dumps(report, indent=2) + '\n') require_identical(results[0], results[1]) diff --git a/scripts/check-wrapper.py b/scripts/check-wrapper.py index cdbd987..50b1597 100644 --- a/scripts/check-wrapper.py +++ b/scripts/check-wrapper.py @@ -32,7 +32,7 @@ def bootstrap(directory, bad_hash): if result.returncode == 0 or 'SHA-256' not in result.stdout: raise ValueError('Checksum rejection did not work: ' + result.stdout) else: - if result.returncode != 0 or 'Apache Maven 3.10.1' not in result.stdout: + if result.returncode != 0 or 'Apache Maven 3.10.2' not in result.stdout: raise ValueError('Wrapper bootstrap failed: ' + result.stdout) print(('Rejected incorrect checksum' if bad_hash else 'Verified bootstrap'), WRAPPER) From dd5540c447091e554c5b9743458ad7d1d46994fb Mon Sep 17 00:00:00 2001 From: Jim Manico Date: Mon, 23 Nov 2026 18:59:13 +0700 Subject: [PATCH 2/2] Record the Maven 3.10.2 wrapper decision and validation --- .github/DEPENDENCY_DECISIONS.md | 22 +++++++- CHANGELOG.md | 8 +-- releases/maven-3.10.2-validation.md | 79 +++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 releases/maven-3.10.2-validation.md diff --git a/.github/DEPENDENCY_DECISIONS.md b/.github/DEPENDENCY_DECISIONS.md index a32fcc2..7a93184 100644 --- a/.github/DEPENDENCY_DECISIONS.md +++ b/.github/DEPENDENCY_DECISIONS.md @@ -3,7 +3,7 @@ Initial review: 2026-09-26. Focused API follow-up: 2026-09-27. Dependabot proposal-policy follow-up: 2026-09-28. Jackson and proposal-routing follow-up: 2026-10-05. Maven 3.10.0 wrapper follow-up: 2026-10-11. Maven 3.10.1 wrapper -follow-up: 2026-11-16. +follow-up: 2026-11-16. Maven 3.10.2 wrapper follow-up: 2026-11-23. PRs [#176](https://github.com/OWASP/owasp-java-encoder/pull/176) and [#188](https://github.com/OWASP/owasp-java-encoder/pull/188) mixed ordinary build @@ -194,6 +194,26 @@ exercised 3.10.0's credential scoping against Central. The reference-JDK reproducibility script still needs to run before the next release; see the [Maven 3.10.1 validation](../releases/maven-3.10.1-validation.md). +## Maven 3.10.2 wrapper — 2026-11-23 + +Accept the Maven **3.10.2** distribution proposed by Dependabot PR +[#273](https://github.com/OWASP/owasp-java-encoder/pull/273). Like #235 and +#267, that PR failed only on the wrapper version assertion and re-committed +`mvnw.cmd` with CRLF in the index, so a separate change completes the checklist +above. The wrapper scripts remain Apache Maven Wrapper 3.3.4 and `mvnw.cmd` is +unchanged. The signing profile now requires exactly 3.10.2. Ordinary builds keep +the `[3.9.16,)` minimum. + +3.10.2 is a bugfix release for 3.10.1 with Resolver 2.0.26 and no listed +security fixes ([release notes](https://maven.apache.org/docs/3.10.2/release-notes.html)). +Apart from Maven's own modules and Resolver, the only bundled library that +changes is Plexus Utils, from 3.6.2 to 3.6.4. The ZIP's SHA-256 and SHA-512 +match, and its signature verifies against Apache Maven's `KEYS`. Effective POMs +from 3.10.1 and 3.10.2 are identical, and JARs and module POMs built by each are +byte-identical. The signing profile and the reference-JDK reproducibility script +have not run under 3.10.2 and need to before the next release; see the +[Maven 3.10.2 validation](../releases/maven-3.10.2-validation.md). + ## Deferred proposals and reconsideration conditions | Proposal | Disposition and required evidence before reconsideration | diff --git a/CHANGELOG.md b/CHANGELOG.md index 375f112..8dde853 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,9 +20,11 @@ unchanged. [1.6.0 is available from Central](releases/1.6.0-central-publication. plugin realms and the Jakarta fixture's Selenium tests, and raise the fixture's OpenTelemetry to 1.67.0, for GHSA-xxph-c9ww-hj94 and GHSA-ccrj-gw8r-854m. Published library dependencies are unchanged. -- Build with Maven 3.10.1, a 3.10.0 bugfix release, through the committed - wrapper and require it for signed releases. Ordinary builds still accept - Maven 3.9.16 or later ([validation](releases/maven-3.10.1-validation.md)). +- Build with Maven 3.10.2, the second 3.10.0 bugfix release, through the + committed wrapper and require it for signed releases. Ordinary builds still + accept Maven 3.9.16 or later (validation: + [3.10.1](releases/maven-3.10.1-validation.md), + [3.10.2](releases/maven-3.10.2-validation.md)). ## 1.6.0 — 2026-10-18 UTC diff --git a/releases/maven-3.10.2-validation.md b/releases/maven-3.10.2-validation.md new file mode 100644 index 0000000..27e4f31 --- /dev/null +++ b/releases/maven-3.10.2-validation.md @@ -0,0 +1,79 @@ +# Maven 3.10.2 wrapper validation — 2026-11-23 + +This record supports the toolchain decision in the +[dependency decision record](../.github/DEPENDENCY_DECISIONS.md) and replaces +Dependabot PR [#273](https://github.com/OWASP/owasp-java-encoder/pull/273). +The local checks below ran on macOS 27.2.1 (26B131) arm64 with Homebrew OpenJDK +17.0.21.0.3. Windows wrapper bootstrap and the other runtime jobs are checked by +required PR CI and are not claimed here. + +## Distribution + +`apache-maven-3.10.2-bin.zip` from `downloads.apache.org` and from Maven Central +are byte-identical. Its SHA-512 matches the `.sha512` file Apache publishes, and its +SHA-256 `7d69999d218e025cf1c14691ba748a09706e47999bd505009403cef9d757c2df` +matches `distributionSha256Sum`. The detached signature is a good signature from +key `88BE34F94BDB2B5357044E2E3A387D43964143E3` (Tamas Cservenak, made +2026-11-18), the same key that signed 3.10.1, checked in an isolated keyring +that held only Apache Maven's `KEYS`. `KEYS` and the ZIP come from the same +publisher, so the signature check does not independently establish publisher +identity. The wrapper scripts stay Apache Maven Wrapper 3.3.4, and `mvnw.cmd` is +unchanged and LF in the index. + +## Release scope + +The [release notes](https://maven.apache.org/docs/3.10.2/release-notes.html) +describe 3.10.2 as a bugfix release for 3.10.1 and list no known issues. Its +Resolver 2.0.26 retries HTTP 502 and 504 responses and improves compatibility +with Resolver 1.9.x. The potentially breaking changes on that page are the +3.10.0 changes already reviewed for the 3.10.0 wrapper; none is new in 3.10.2. + +The [GitHub release](https://github.com/apache/maven/releases/tag/maven-3.10.2) +lists seven fixes and none is described as a security fix. They cover imported +dependency management and version-range caches, plugin-level +`false` with executions, build extensions that override +core lifecycle mappings, error reporting for invalid POMs and `extensions.xml`, +and ANSI colors on Windows 11. No POM here sets ``, and the only build +extension is the Central publisher in the signing profile. + +Comparing the `lib` and `boot` directories of the 3.10.1 and 3.10.2 ZIPs, the +only changes are Maven's own modules, Resolver 2.0.25 to 2.0.26 and Plexus Utils +3.6.2 to 3.6.4. Sisu stays at 1.1.2. + +## Build and wrapper + +With 3.10.2, `./mvnw -B -ntp clean verify` passed from an empty local +repository: 2,302 unit tests, seven integration tests, Checkstyle, API and +Java 8 signature checks, coverage and both packaged JSP engines. +`python3 scripts/check-wrapper.py` bootstrapped 3.10.2 from an empty wrapper +cache and rejected an incorrect checksum. All 36 policy tests passed, and +`python3 scripts/check-effective-pom-scm.py` passed. The legacy +`jvnet-nexus-releases` `.meta/prefixes.txt` warning recorded for 3.10.0 is +unchanged. + +## Effective POMs + +`help:effective-pom` from 3.10.1 and 3.10.2 was compared for the same source +tree, both by default and with `-DperformRelease=true`. Both pairs of outputs +are byte-identical. + +## Payloads + +`main` at `67f3d061f114bb0d7cfefd6ec50cf33baba1917d` (Maven 3.10.1) and the +implementation commit `99f8b31` (Maven 3.10.2) were each built from a fresh +`git archive` export with its own empty Maven repository and wrapper cache, +using `-DskipTests clean install` and the UTC/locale settings of +`scripts/check-reproducible.py`. All nine JARs and three module POMs are +byte-identical. The parent POM differs only in the release enforcer's +`[3.10.1]` → `[3.10.2]` line. + +## Not exercised + +`scripts/check-reproducible.py` did not run: it requires reference Eclipse +Temurin 17.0.20.1+1, which is not installed here. The payload comparison above +used a different JDK build, so it shows that the Maven version does not change +artifact bytes, not that the release recipe reproduces. Run that script with the +reference JDK before the next release. No signing, Central Portal staging, tag +or release operation ran, so the publisher extension has not been loaded under +3.10.2. The Docker browser fixture (`-PtestJakarta`) also did not run locally; +required PR CI covers it.