Skip to content

fix: remove duplicate maven-dependency-plugin declaration - #39

Open
Sreini wants to merge 1 commit into
masterfrom
fix/duplicate-maven-dependency-plugin
Open

Sreini wants to merge 1 commit into
masterfrom
fix/duplicate-maven-dependency-plugin

Conversation

@Sreini

@Sreini Sreini commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

master is currently red in CI: every Maven job fails at POM parsing, before any compilation.

[ERROR] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found
        duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin
        @ line 295, column 21

pom.xml declared maven-dependency-plugin twice, at line 200 and line 297. Older Maven treated a duplicate as a warning; current Maven rejects it. Nothing is pinned, so the runner image moved underneath the repo — this went red without any commit landing.

Both declarations pinned the same version (3.10.0). The first carries the copy-agent execution that stages the jmockit agent for tests; the second was bare, with no executions or configuration. Removed the bare one.

Verification

  • mvn validate passes (it did not before).
  • Full suite: 91 tests, 0 failures.
  • target/agents/jmockit-1.49.jar is still staged, so the agent wiring is intact.

Confirmed pre-existing by pushing a throwaway branch at master's exact tip with zero changes (since deleted): 4 failures, 22 cancelled, 0 passes, identical line 295 error.

This unblocks #38, which is otherwise green.

pom.xml declared org.apache.maven.plugins:maven-dependency-plugin twice.
Older Maven treated that as a warning; current Maven rejects it:

  'build.plugins.plugin.(groupId:artifactId)' must be unique but found
  duplicate declaration of plugin maven-dependency-plugin @ line 295

Every Maven job on master currently fails at POM parsing because of it.

The two declarations pinned the same version (3.10.0). The first carries
the copy-agent execution that stages the jmockit agent for tests; the
second was bare, with no executions or configuration, so removing it
changes nothing. Verified the agent is still copied to target/agents and
the suite passes.
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.

1 participant