GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pin maven-jar-plugin 3.5.1 in modular IT fixtures by ascheman · Pull Request #3398 · apache/maven-surefire

Conversation

@ascheman

@ascheman ascheman commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

The windows-latest jdk-11 CI cell fails for every PR since Maven 3.10.0-rc-1 became the IT baseline: its super-POM pins maven-jar-plugin 3.5.0, whose plexus-archiver 4.10.4 throws an NPE (JarToolModularJarArchiver.fixLastModifiedTimeZipEntries) when packaging modular JARs on Windows with JDK < 14 (no jar --date; POSIX attribute view is null on Windows). Details, reproducer and windows-runner validation: apache/maven-jar-plugin#555

maven-jar-plugin 3.5.1 (released 2026-07-22) ships plexus-archiver 4.12.0 with the fix. This pins 3.5.1 explicitly in the four affected modular fixtures (surefire-1733-junit4, surefire-1733-testng, surefire-2190, surefire-1993-jpms-providing-modules) so the fixtures stop depending on the super-POM's jar-plugin version.

Verified locally under Maven 3.10.0-rc-1: Surefire1733JUnit4IT, Surefire1733TestngIT, Surefire2190JUnit4IT, Surefire1993JpmsProvidingModulesIT all green, fixture logs confirm maven-jar-plugin:3.5.1:jar executed. The windows-latest jdk-11 cell (currently red on #3392/#3395 for this unrelated reason) should turn green with this change.


🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ascheman @claude
Pin maven-jar-plugin 3.5.1 in modular IT fixtures
fe567cc
The windows-latest jdk-11 CI cell fails for every PR since Maven
3.10.0-rc-1 became the IT baseline: its super-POM pins maven-jar-plugin
3.5.0, whose plexus-archiver 4.10.4 throws an NPE
(JarToolModularJarArchiver.fixLastModifiedTimeZipEntries) when
packaging modular JARs on Windows with JDK < 14 (no 'jar --date'; POSIX
attribute view is null on Windows). Details and validation:
apache/maven-jar-plugin#555

maven-jar-plugin 3.5.1 (released 2026-07-22) ships plexus-archiver
4.12.0 with the fix. Pin 3.5.1 explicitly in the four affected modular
fixtures so they stop depending on the super-POM's jar-plugin version.

Verified locally under Maven 3.10.0-rc-1: Surefire1733JUnit4IT,
Surefire1733TestngIT, Surefire2190JUnit4IT and
Surefire1993JpmsProvidingModulesIT green; fixture logs confirm
maven-jar-plugin:3.5.1:jar executed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@ascheman
ascheman requested review from Copilot and slawekjaranowski July 23, 2026 06:15
Copilot started reviewing on behalf of ascheman July 23, 2026 06:15
View session
Copilot AI reviewed Jul 23, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to stabilize Surefire’s modular integration-test fixtures under the Maven 3.10.0(-rc-1) baseline by explicitly pinning maven-jar-plugin to 3.5.1, avoiding a Windows/JDK<14 modular-JAR packaging failure caused by the super-POM’s maven-jar-plugin:3.5.0 / plexus-archiver NPE.

Changes:

  • Add an explicit maven-jar-plugin version pin (3.5.1) to four JPMS-related surefire-its fixture POMs.
  • Document in each fixture why the pin is needed (linking to maven-jar-plugin issue #555).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
surefire-its/src/test/resources/surefire-2190/pom.xml Pins maven-jar-plugin to 3.5.1 in the fixture build plugins.
surefire-its/src/test/resources/surefire-1993-jpms-providing-modules/pom.xml Pins maven-jar-plugin to 3.5.1 (currently under pluginManagement).
surefire-its/src/test/resources/surefire-1733-testng/pom.xml Pins maven-jar-plugin to 3.5.1 in the fixture build plugins.
surefire-its/src/test/resources/surefire-1733-junit4/pom.xml Pins maven-jar-plugin to 3.5.1 in the fixture build plugins.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread surefire-its/src/test/resources/surefire-1993-jpms-providing-modules/pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

slawekjaranowski
slawekjaranowski approved these changes Jul 23, 2026
View reviewed changes
@ascheman
ascheman merged commit 6e80c75 into apache:master Jul 24, 2026
27 of 28 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

@ascheman Please assign appropriate label to PR according to the type of change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added this to the 3.6.0-M2 milestone Jul 24, 2026
@github-actions github-actions Bot assigned ascheman Jul 24, 2026
@slawekjaranowski slawekjaranowski added the maintenance label Jul 27, 2026
@ascheman ascheman mentioned this pull request Jul 27, 2026
Pin maven-jar-plugin 3.5.1 in modular IT fixtures #3409
Merged
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@ascheman ascheman

Labels

maintenance

Projects

None yet

Milestone

3.6.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@ascheman @slawekjaranowski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.