Build against Maven 4.0.0-rc-6 - #1104
Merged
Merged
Conversation
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
approved these changes
Aug 4, 2026
This was referenced Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moves
mavenVersionto the current RC and pins the same version explicitly in the Verify workflow, so CI no longer depends on themaven4-versiondefault in maven-gh-actions-shared.maven-testingis versioned by${mavenVersion}, and in rc-6 itsorg.apache.maven.api.plugin.testingpackage was relocated toorg.apache.maven.testing.plugin. Deprecated shims remain under the old names, butProducedArtifactStub's shim is a bare no-arg subclass — constructors are not inherited — so the five-argument constructorCompilerMojoTestCaseuses disappears and the test sources stop compiling:This points those imports at the new package. No production code changes.
Verified: green on the fork before opening;
mvn testlocally is 16 tests, 0 failures.