Skip to content

fix(QTDI-3703): Backport Central Portal publishing to 1.64 - #1309

Merged
fdesiles merged 1 commit into
maintenance/1.64from
fdesiles/QTDI-3703_central_portal_backport
Oct 29, 2026
Merged

fdesiles merged 1 commit into
maintenance/1.64from
fdesiles/QTDI-3703_central_portal_backport

Conversation

@fdesiles

@fdesiles fdesiles commented Oct 29, 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 — N/A: build-configuration change only (poms), no Java logic.
  • Any API addition MUST be done with a documentation update if relevant — N/A: no API change.

Why this PR is needed?

QTDI-3703: the MAINTENANCE release of maintenance/1.64 fails in release:perform with Server credentials with ID "ossrh" not found!. The 1.64 pom.xml still publishes with nexus-staging-maven-plugin (ossrh / oss.sonatype.org), while .jenkins/settings.xml on 1.64 only defines central.portal (taken from master by #1140 without the matching pom changes). OSSRH has been sunset by Sonatype, so restoring an ossrh credential is not a fix. The Sonatype snapshot deploy stage of the Jenkinsfile has the same mismatch (the snapshot profile it activates does not exist on 1.64).

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

Backport of master's final publishing state (QTDI-1553: #1068, #1071, #1072, #1073 and later fixes, incl. publishingServerId from #1271). Push/pull mechanism unchanged relative to master; build, tests, dependencies and image generation are untouched.

  • pom.xml
    • distributionManagement: only a snapshotRepository central.portal (https://central.sonatype.com/repository/maven-snapshots); the ossrh release <repository> is removed.
    • repositories / pluginRepositories: oss.snapshots replaced by central.portal (snapshots only, releases disabled).
    • nexus-staging-maven-plugin replaced by central-publishing-maven-plugin 0.8.0 (property + pluginManagement).
    • Profiles release (excludeArtifacts for the studio modules), no-staging (skipPublishing + publishingServerId central.portal) and the new snapshot follow master. Plugin versions of source/javadoc/gpg inside the profiles stay as on 1.64.
  • component-studio/pom.xml: new release-zl profile publishing to the private Nexus (talend_nexus_deployment), already activated by release-3.1-perform-studio.sh.
  • talend-component-maven-plugin/pom.xml: component-runtime-di provided dependency removed (as chore(QTDI-1553): migrate from osshr to central #1068). ClasspathMojoBase only references it as a string. This is the only change with a build-graph effect.

Not taken: calendar versioning (QTDI-3301), <scm>/<tag> rewrite, Java 17, dependency/plugin bumps. Not touched (already identical to master): .jenkins/settings.xml, Jenkinsfile, ci/Jenkinsfile-release, .jenkins/scripts/release/*, images/.

Validation

  • help:effective-pom before/after for default, release,gpg2, snapshot,gpg2, no-staging, and component-studio with release-zl,no-staging: only publishing-related sections differ; no ossrh / nexus-staging / oss.snapshots left.
  • Not run locally: module build, Spotless and mvn clean verify (Maven gets 401 from artifacts-oss.talend.com; no credentials locally). CI on this PR is the first full verification, in particular that talend-component-maven-plugin compiles without the component-runtime-di dependency.
  • The real 1.64.9 release is run by a human after merge. PR chore(QTDI-3696): Align Jenkinsfile with master and add SONAR profile #1305 (QTDI-3696) is superseded by fix(QTDI-3656): Upgrade JDK to 17.0.21+9 for CVE-2026-91403 #1302 and can be closed.

Checklist

  • Tests added or updated (UT / IT as applicable) — N/A, build-configuration only
  • mvn clean verify passes locally — not run (401 on Talend OSS Nexus), CI to confirm
  • Spotless formatting applied — not run (same reason); poms only, master formatting mirrored
  • No new Sonar issues expected (no Java change)

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

AI contribution metrics

  • Code Generation % (this PR): 100% (185/185 changed lines)
  • Code Generation % (ticket-wide cumulative): 100% (185/185 changed lines)
  • Technical Design % (ticket-wide cumulative): 17% (131/760 words retained from the AI draft in the Dev-approved plan, 1 revision)

🤖 Generated with Claude Code

Replace the OSSRH / nexus-staging-maven-plugin publishing with
central-publishing-maven-plugin 0.8.0 (central.portal), as on master:
- root pom: distributionManagement, repositories and pluginRepositories
  use central.portal; release, no-staging and snapshot profiles
- component-studio: add the release-zl profile (talend_nexus_deployment)
- talend-component-maven-plugin: drop the component-runtime-di
  provided dependency (as done in #1068)

Calendar versioning (QTDI-3301) is not taken.

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

Copy link
Copy Markdown
Contributor Author

🧐 Scope & Design review — QTDI-3703

Note: critic runs in the same context as the implementer — structured self-review, not a substitute for human review.

Critic Round 1 — Findings

Files: pom.xml, component-studio/pom.xml, talend-component-maven-plugin/pom.xml. No Java, no tests (build-config only; QABacklog). Every acceptance criterion maps to a diff hunk; no file outside the approved plan is touched; calendar versioning, scm/tag rewrite, Java 17, plugin bumps, Cloudera/gradle repo changes are NOT taken.

# Severity File Description Suggested Fix
1 MINOR pom.xml (snapshot profile) No excludeArtifacts, so a -Psnapshot deploy would also push component-studio / component-runtime-di snapshots to Central snapshots. Identical to master's final state (intentional parity); only matters if the Jenkinsfile snapshot stage deploys the studio modules. None — parity with master. Watch the first snapshot stage run.
2 MINOR talend-component-maven-plugin/pom.xml Removing the component-runtime-di provided dependency drops a reactor ordering edge. No import of component-runtime-di classes in the module, no reference in src/it poms; ClasspathMojoBase.java:112 only uses the name as an exclusion string. Compile not run locally (401 on Talend OSS Nexus). CI is the first full verification.
3 MINOR release scripts (.jenkins/scripts/release/*) They differ from master (DRY_RUN support, -Dinvoker.skip) and still pass -Possrh (a gpg-properties profile in .jenkins/settings.xml, identical on master). Out of scope per approved plan. None in this PR; validate release via effective-pom / real release.
4 MINOR validation Effective-pom checked for default, release,gpg2, snapshot,gpg2, no-staging and studio release-zl,no-staging; release:prepare dry run was not possible (no DRY_RUN on 1.64, build blocked by 401). Human to run the real 1.64.9 release after merge.

Edge cases challenged and found OK: central.portal snapshot repo has releases disabled; no-staging sets publishingServerId (avoids an NPE when it is the only profile activating the extension); release keeps source/javadoc/gpg executions at 1.64's existing plugin versions; no leftover ossrh / nexus-staging / oss.snapshots in the three poms; poms are well-formed.

Approval gate: APPROVED after 1 round — no Blocker or Major findings, 4 Minor (non-blocking).

Signed: Claude Sonnet 5.5

@fdesiles

Copy link
Copy Markdown
Contributor Author

🔍 Code Review — QTDI-3703

Reviewed 3 files changed on this branch (base maintenance/1.64).

Findings

File Line Severity Finding Rule
pom.xml snapshot / release profiles ℹ️ Info New plugin org.sonatype.central:central-publishing-maven-plugin:0.8.0 replaces nexus-staging-maven-plugin; same version as master — licence/CVE status already accepted there. Version declared once (property + pluginManagement), not inline in the profiles. Dependencies
talend-component-maven-plugin/pom.xml 145 ℹ️ Info component-runtime-di provided dependency removed (no code import; build-order edge dropped). Compile not run locally (401 on Talend OSS Nexus); CI is the first verification. Dependencies / build

Other checks: no whitespace errors (git diff --check), no tabs, 2-space indentation, poms well-formed, license headers untouched, no new Java/test code, no deprecation/API change, no TCK connector code touched, scope matches the approved plan (3 files only). Spotless was not run (plugin dependency unreachable, 401) — poms only, mirroring master's formatting.

Summary

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

Files with no findings: component-studio/pom.xml.

Exhaustive local review — all 3 changed files reviewed. Generated by AI; findings should be validated by a human reviewer.

Signed: Claude Sonnet 5.5

@sonar-rnd

sonar-rnd Bot commented Oct 29, 2026

Copy link
Copy Markdown

@fdesiles
fdesiles merged commit e618d24 into maintenance/1.64 Oct 29, 2026
3 of 6 checks passed
@fdesiles
fdesiles deleted the fdesiles/QTDI-3703_central_portal_backport branch October 29, 2026 15:35
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.

2 participants