Update Maven version to 4.0.0-SNAPSHOT #2513
Merged
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.
Summary
This PR updates the Maven version from
4.0.0-rc-4-SNAPSHOT
to4.0.0-SNAPSHOT
across all modules and addresses a failing integration test by disabling it for Maven 4.x.Changes Made
Version Update
4.0.0-rc-4-SNAPSHOT
to4.0.0-SNAPSHOT
Integration Test Issue Resolution
[4.0,)
to[5.0,)
Files Modified
Version Updates
pom.xml
pom.xml
files in:api/
modules (maven-api-*)compat/
modules (maven-artifact, maven-compat, etc.)impl/
modules (maven-cli, maven-core, etc.)its/
modules (integration test support)Test Configuration
its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3991ValidDependencyScopeTest.java
[5.0,)
to disable for Maven 4.xTechnical Details
Version Update
Integration Test Issue
invalid
[5.0,)
Maven 4 Behavior Change
Maven 4 includes this change for backward compatibility:
Checklist:
Note: The integration test has been disabled for Maven 4.x due to a behavior change where invalid dependency scopes generate warnings instead of errors. This maintains backward compatibility with extensions that use custom scopes, following the same pattern as PR #2508. The issue to track the integration test is #2510.