Skip to content

fix(QTDI-3816): Merge duplicate gmavenplus-plugin declarations - #1343

Open
thboileau wants to merge 1 commit into
maintenance/1.2610from
thboileau/QTDI-3816_dedupe_gmavenplus_plugin
Open

thboileau wants to merge 1 commit into
maintenance/1.2610from
thboileau/QTDI-3816_dedupe_gmavenplus_plugin

Conversation

@thboileau

@thboileau thboileau commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

QTDI-3816: component-starter-server/pom.xml on maintenance/1.2610 declares org.codehaus.gmavenplus:gmavenplus-plugin twice. Maven reports a duplicate plugin declaration, which breaks the CI "submit maven" task.

What does this PR adds (design/code thoughts)?

Merges the two gmavenplus-plugin <plugin> blocks into one, as already done on master (commit 49932e6). Only this POM hunk is taken.

  • The two <configuration> bodies were identical (allowSystemExits=true, script GrabMavenWrapper.groovy), so one is kept.
  • The jgit dependency (with its slf4j-jdk14 exclusion) and the grab-maven-wrapper execution (phase process-resources) are preserved unchanged.
  • Version is still inherited from root pluginManagement.

No Java code or tests changed, so no unit test applies. Verified with mvn -pl component-starter-server -am package -DskipTests → BUILD SUCCESS, no duplicate-declaration warning, grab-maven-wrapper execution ran.

Out of scope: other QTDI-3531 changes, and QTDI-3869 (separate failure: talend-component-maven-plugin snapshot not found), so "submit maven" may still fail for that reason.

AI contribution metrics

  • Code Generation % (this PR): 100% (10/10 changed lines)
  • Code Generation % (ticket-wide cumulative): 100% (10/10 changed lines)
  • Technical Design % (ticket-wide cumulative): 100% (1 revision, no edits)

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

🤖 Generated with Claude Code

Merge the two gmavenplus-plugin blocks in component-starter-server into
a single declaration, keeping the grab-maven-wrapper execution and the
jgit dependency. Removes the duplicate plugin declaration validation
error that failed the CI "submit maven" task.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
@thboileau

Copy link
Copy Markdown
Contributor Author

Critic Round 1 — Findings

Scope: component-starter-server/pom.xml (modification, -10 lines, no Java or tests).

Checks performed:

  • Merged plugin block = the original first block's <configuration> and <dependencies> plus the second block's <executions>. The two removed <configuration> bodies were identical, so no behaviour is lost. The jgit dependency, its slf4j-jdk14 exclusion, and the grab-maven-wrapper execution (phase process-resources) are unchanged.
  • Child-element order inside <plugin> is irrelevant to Maven.
  • The version is inherited from the root pluginManagement (${gmavenplus-plugin.version}), so no version is lost.
  • A repo-wide scan of all pom.xml files found no other duplicate plugin declaration. documentation/pom.xml has two entries, but one is in <build> and one in a profile, which is legal.
  • mvn -pl component-starter-server -am package -DskipTests → BUILD SUCCESS. The grab-maven-wrapper execution ran, and there is no "must be unique / duplicate declaration" warning.
  • No Java code or tests changed, so none apply.
# Severity File Description Suggested Fix
1 MINOR component-starter-server/pom.xml Verification was done with -DskipTests; the full module test suite was not run in this step. Optional: run mvn -pl component-starter-server -am verify if CI feedback is wanted.

Approval gate: APPROVED — no Blocker or Major findings. 1 Minor noted (non-blocking).

Signed: Claude Sonnet 5.5

@thboileau

Copy link
Copy Markdown
Contributor Author

🔍 Code Review — QTDI-3816

Reviewed 1 file changed on this branch: component-starter-server/pom.xml. It is a build descriptor with no Java, TCK, i18n or test code, so the java-* / tck-* rules don't apply.

Checks:

  • XML is well-formed (xmllint OK) and git diff --check reports no whitespace errors.
  • Indentation matches the file (4 spaces) and the license header is untouched.
  • The change only removes a duplicate plugin declaration. No dependency was added, changed or bumped, so there is no license or CVE impact.
  • No deprecation or API surface is affected.

Findings

None.

Summary

Severity Count
🔴 Critical 0
⚠️ Warning 0
ℹ️ Info 0

Critical fixed: 0, Warnings: 0, Info: 0.

Files with no findings

  • component-starter-server/pom.xml

Memory flags: none (no multi-file pattern or repo gotcha).

Signed: Claude Sonnet 5.5

@sonar-rnd

sonar-rnd Bot commented Nov 19, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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