Repository navigation
Share the integration test setup and drop unused POM entries - #1444
Merged
Merged
Conversation
The enforcer ITs gain the faster JVM settings of the plugin ITs. Failed ITs are no longer rerun: a rerun starts from POMs the first run already rewrote, so it only replaces the real error with a misleading one.
slachiewicz
marked this pull request as ready for review
October 11, 2026 16:30
slachiewicz
force-pushed
the
agent/pom-cleanup
branch
from
October 11, 2026 16:35
8898aa9 to
e6b07d9
Compare
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.
The
run-itsprofiles ofversions-maven-pluginandversions-enforcerwere near-copies. Their mrm and invoker configuration now lives once in the root POM'spluginManagement; each module only names the plugins, and the plugin module adds its setup hook. On the way:JAVA_TOOL_OPTIONSJVM settings the plugin ITs have had since Speed up the integration tests #1411.projectsDirectoryandpomIncludesare dropped because they repeated invoker's defaults;streamLogsbecause the execution overrode it;filterPropertiesbecause onlysettings.xmluses@repository.proxy.url@, and the enforcer resolves it without.invoker.rerunFailingTestsCountis 0 instead of mojo-parent's 1. A rerun starts from the POMs the first run already rewrote, so it replaces the real error with a misleading one, as in Restore versions:set propagation with selected projects #1440.maven-compattest dependency is gone; nothing on the test classpath needs it any more.dependency:analyzealso flagswoodstox-core,plexus-utilsandmockito-inlineas unused, but each is needed at runtime, so they stay. The six managed dependencies no module declares directly are all still in the dependency tree, pinning transitive versions.Verified:
help:effective-pom -P run-itsshows the same invoker and mrm settings for both modules apart from the changes above;mvn -P run-its verify -pl versions-enforcer→ 6 passed; the plugin's unit tests → 302 passed withoutmaven-compat.