Skip to content

Build against Maven 4.0.0-rc-6 - #1104

Merged
desruisseaux merged 1 commit into
apache:masterfrom
slachiewicz:maven-4.0.0-rc-6
Aug 4, 2026
Merged

desruisseaux merged 1 commit into
apache:masterfrom
slachiewicz:maven-4.0.0-rc-6

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

Moves mavenVersion to the current RC and pins the same version explicitly in the Verify workflow, so CI no longer depends on the maven4-version default in maven-gh-actions-shared.

maven-testing is versioned by ${mavenVersion}, and in rc-6 its org.apache.maven.api.plugin.testing package was relocated to org.apache.maven.testing.plugin. Deprecated shims remain under the old names, but ProducedArtifactStub's shim is a bare no-arg subclass — constructors are not inherited — so the five-argument constructor CompilerMojoTestCase uses disappears and the test sources stop compiling:

CompilerMojoTestCase.java:[436,21] constructor ProducedArtifactStub … cannot be applied to given types
  required: no arguments   found: String,String,<nulltype>,String,String

This points those imports at the new package. No production code changes.

Verified: green on the fork before opening; mvn test locally is 16 tests, 0 failures.

Move the Maven 4 version property to the current RC and pin the same
version explicitly in the Verify workflow, so CI does not depend on the
maven4-version default in maven-gh-actions-shared.

maven-testing is versioned by ${mavenVersion}, and its
org.apache.maven.api.plugin.testing package was relocated to
org.apache.maven.testing.plugin. Deprecated shims remain under the old
name, but ProducedArtifactStub's shim is a bare no-arg subclass, so the
five-argument constructor CompilerMojoTestCase uses is not inherited and
the test sources no longer compile. Point the imports at the new package.

mvn test: 16 tests, 0 failures.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@desruisseaux desruisseaux added the dependencies Pull requests that update a dependency file label Aug 4, 2026
@desruisseaux desruisseaux added this to the 4.0.0-beta-5 milestone Aug 4, 2026
@desruisseaux
desruisseaux merged commit fc38719 into apache:master Aug 4, 2026
20 checks passed
@slachiewicz
slachiewicz deleted the maven-4.0.0-rc-6 branch August 4, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants