Skip to content

Share the integration test setup and drop unused POM entries - #1444

Merged
slachiewicz merged 2 commits into
masterfrom
agent/pom-cleanup
Oct 11, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/pom-cleanup

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The run-its profiles of versions-maven-plugin and versions-enforcer were near-copies. Their mrm and invoker configuration now lives once in the root POM's pluginManagement; each module only names the plugins, and the plugin module adds its setup hook. On the way:

  • The enforcer ITs gain the JAVA_TOOL_OPTIONS JVM settings the plugin ITs have had since Speed up the integration tests #1411.
  • projectsDirectory and pomIncludes are dropped because they repeated invoker's defaults; streamLogs because the execution overrode it; filterProperties because only settings.xml uses @repository.proxy.url@, and the enforcer resolves it without.
  • invoker.rerunFailingTestsCount is 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.
  • The maven-compat test dependency is gone; nothing on the test classpath needs it any more.

dependency:analyze also flags woodstox-core, plexus-utils and mockito-inline as 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-its shows 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 without maven-compat.

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 slachiewicz added the build Pull requests that change the build process label Oct 11, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 11, 2026 16:30
@slachiewicz
slachiewicz merged commit 8884dfb into master Oct 11, 2026
16 checks passed
@slachiewicz
slachiewicz deleted the agent/pom-cleanup branch October 11, 2026 17:04
@github-actions github-actions Bot added this to the 2.22.1 milestone Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant