Skip to content

fix(java): declare maven-install-plugin once in the java module - #985

Merged
SemyonSinchenko merged 1 commit into
apache:mainfrom
keksmd:java-fix-duplicate-install-plugin
Oct 10, 2026
Merged

SemyonSinchenko merged 1 commit into
apache:mainfrom
keksmd:java-fix-duplicate-install-plugin

Conversation

@keksmd

@keksmd keksmd commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Reason for this PR

Closes #984. maven-projects/java/pom.xml declares maven-install-plugin twice in pluginManagement; the CI runner now rejects that while loading the reactor, so the Java SDK format check fails before any module builds.

What changes are included in this PR?

Removes the shadowed maven-install-plugin 2.5.1 declaration. The effective model is unchanged: help:effective-pom already resolved 2.5.2.

Are these changes tested?

mvn -f maven-projects/pom.xml -pl java validate succeeds and the must be unique warning is gone. CI exercises the full reactor.

Are there any user-facing changes?

No.

Checklist

  • I have performed a self-review of my own code.
  • I have formatted my own code using make cpplint before submitting when changed files are in the cpp directory.
  • I have performed pre-commit run before commit the changed files.
  • I have added tests to prove my changes are effective. (build-config change; covered by CI)

The java module's pluginManagement declared maven-install-plugin twice, 2.5.1
without a groupId and 2.5.2 with it, both resolving to the same plugin. Maven
already used 2.5.2 and only warned, but the CI runner now rejects the duplicate
while reading the reactor, so the Java SDK format check fails before building.

Dropping the shadowed 2.5.1 entry keeps the effective model unchanged.
@SemyonSinchenko
SemyonSinchenko merged commit 06dddb1 into apache:main Oct 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][Java] CI fails on a duplicate maven-install-plugin declaration in the java module

2 participants