Maven 4 rc6 test - #2086
Merged
venmanyarun merged 6 commits intoAug 14, 2026
Merged
Maven 4 rc6 test#2086
Conversation
venmanyarun
marked this pull request as draft
August 13, 2026 08:31
Three changes required to run the integration tests under Maven 4 RC-6: 1. Mark invoker profile activations as optional (? prefix) Maven 4 made requesting a missing profile a hard error (MissingProfilesException). The invoker plugin passes -Ponline-its/-Poffline-its to every IT subprocess, but most IT poms don't declare those profiles. Adding the '?' prefix makes them optional: activated if present, silently skipped if absent. 2. Pin plugin versions in IT setup parent pom Under Maven 4, default plugin bindings resolve the latest release from Central if no version is locked. This caused maven-resources- plugin:4.0.0-beta-1 to be pulled in, which fails with NoSuchMethodError against Maven 4 RC-6's maven-api-services. Pinning maven-resources-plugin:3.5.0, maven-compiler-plugin:3.15.0, maven-install-plugin:3.1.3, and maven-surefire-plugin:3.5.2 in the setup parent propagates stable versions to all 85 IT children. 3. Null-guard MavenProject.getPluginManagement() in DeployMojo Maven 4 returns null from getPluginManagement() when a pom has no <pluginManagement> block (Maven 3 returned an empty object). The mavenWarPluginExists() method called .getPlugins() unconditionally, causing a NullPointerException during the deploy goal.
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.
PR for testing Maven 4 RC
Changes