Skip to content

chore(QTDI-3642): pull dependencies from GitHub Packages instead of Nexus - #1306

Merged
ozhelezniak-talend merged 23 commits into
masterfrom
lxia-talend/QTDI-3642_github_packages_pull_check
Nov 17, 2026
Merged

ozhelezniak-talend merged 23 commits into
masterfrom
lxia-talend/QTDI-3642_github_packages_pull_check

Conversation

@lxia-talend

@lxia-talend lxia-talend commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

https://qlik-dev.atlassian.net/browse/QTDI-3642
Moves component-runtime from Nexus to GitHub Packages (QTDI-3642 pull, QTDI-3791 push).

Pull (QTDI-3642)

  • Nexus pull config (repositories, pluginRepositories, mirror, read-only server credentials) is removed; github_package_releases (https://maven.pkg.github.com/Talend/global-artifacts) is added as repository/pluginRepository, with github_package_* servers in .jenkins/settings.xml (GITHUB_PACKAGES_LOGIN / GITHUB_PACKAGES_TOKEN).
  • githubPackagesCredentials is injected via withCredentials in every dependency-resolving stage of Jenkinsfile, ci/Jenkinsfile-release, ci/Jenkinsfile-trivy.

Push (QTDI-3791)

  • Sonatype/Maven Central and Nexus deploys are removed. The root distributionManagement uses the github_packages server id: snapshots/qualified versions go to global-artifacts, releases to the packages of this repository.
  • The studio modules (component-runtime-di has a system scope dependency that Sonatype rejected) are no longer released apart: the release-zl profile, release-3.1-perform-studio.sh and the "Release studio modules" stage are removed.

Known leftover (TODO)

  • The IT poms talend-component-maven-plugin/src/it/uispec/pom.xml and src/it/dependency/pom.xml keep a HikariCP exclusion. Once Talend/connectors#91 is released, move the IT component to a jdbc version whose pom uses hikari-cp and remove the exclusion (marked with a TODO QTDI-3642 comment in both files). Tracked in QTDI-3836.

The PR build in Jenkins must be triggered manually to verify. Only releases resolve from GitHub Packages; SNAPSHOT deps are not expected to resolve.

Checklist

  • Tests added or updated (UT / IT as applicable) — N/A, CI/config only; verification is the Jenkins build
  • mvn clean verify passes locally — not run; mvn help:effective-pom and spotless:check only
  • Spotless formatting applied
  • No new Sonar issues

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% (82/82)
  • Code Generation % (ticket-wide cumulative): 100%
  • Technical Design % (ticket-wide cumulative): 100% (plan approved without changes)

@lxia-talend

Copy link
Copy Markdown
Contributor Author

Scope & Design Review — QTDI-3642

Critic round 1: APPROVED — no Blocker or Major findings. 4 Minor (non-blocking):

# Severity File Description
1 MINOR .jenkins/scripts/release/release-3.1-perform-studio.sh, release-5-prepare-next-iteration.sh Some release-pipeline mvn calls pass no --settings, so they cannot authenticate to GitHub Packages. Release pipeline is out of the verified build; add --settings .jenkins/settings.xml when it is migrated for real.
2 MINOR Jenkinsfile (Sonar stage) SonarController (shared lib) decides which settings.xml mvn uses; credentials are injected but settings use is not visible here. Confirm in the Jenkins run.
3 MINOR Jenkinsfile / docker_build.sh --settings newly added to mvn versions:set and docker_build mvn calls (previously default pod settings). Jib auth to be confirmed in the Jenkins run.
4 MINOR pom.xml Only github_package_releases is a pull repo (as instructed); SNAPSHOT deps will not resolve from GitHub Packages. Accepted.

Signed: Claude Sonnet 5.5

@lxia-talend

Copy link
Copy Markdown
Contributor Author

Code Review / Compliance — QTDI-3642

Reviewed 6 files (pom.xml, .jenkins/settings.xml, .jenkins/scripts/docker_build.sh, Jenkinsfile, ci/Jenkinsfile-release, ci/Jenkinsfile-trivy; no Java changes).

File Severity Finding
pom.xml ℹ️ Info Nexus pull repos commented out (not deleted) with QTDI-3642 marker; new repos use <releases>/<snapshots> before <id>/<url> — mvn -N spotless:check passes
.jenkins/settings.xml ℹ️ Info Nexus read servers + mirror commented out; push servers (talend.snapshots, talend.releases, talend_nexus_deployment) untouched
Jenkinsfile, ci/* ℹ️ Info githubPackagesCredentials injected in all dependency-resolving stages; Nexus deploy stages unchanged

Critical: 0 · Warnings: 0 · Info: 3

Signed: Claude Sonnet 5.5

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Maven stages can still fail to authenticate against GitHub Packages because required credentials are missing from the deploy stage and the release-preparation command does not use the injected settings file.

2 open issues
What changed in this PR

This verification-only PR updates Maven and Jenkins configuration to resolve release dependencies from GitHub Packages instead of Nexus while preserving Nexus deployment configuration for restoration.

Changes:

  • Adds GitHub Packages repositories and authenticated Maven server configuration.
  • Injects GitHub Packages credentials into the main, release, and Trivy Jenkins pipelines.
  • Updates Docker Maven builds to use .jenkins/settings.xml.
  • Comments out Nexus pull configuration without deleting it.

Two moderate issues remain unresolved: the relevant Maven deploy stages need GitHub Packages credentials, and the release preparation command must use .jenkins/settings.xml.

This pull request requires changes.

File Description
pom.xml Configures GitHub Packages release repositories while commenting out Nexus pull repositories.
Jenkinsfile Updates pipeline stages with GitHub Packages credentials and Maven settings usage.
ci/​Jenkinsfile-trivy Adds GitHub Packages credentials to the Trivy build stage.
ci/​Jenkinsfile-release Adds GitHub Packages credentials to release pipeline stages.
.jenkins/​settings.xml Adds GitHub Packages server credentials and comments out Nexus pull configuration.
.jenkins/​scripts/​docker_build.sh Ensures Docker Maven builds use the Jenkins settings file.

Review effort: Lite

Comment thread Jenkinsfile Resolved
Comment thread ci/Jenkinsfile-release Resolved
lxia-talend and others added 4 commits November 3, 2026 13:43
…exus

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…IT settings

The invoker ITs use their own settings.xml, which lacked the GitHub Packages
server, so org.talend.components:jdbc:car could not be resolved once the
Nexus pull repositories were commented out.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ository

The maven-plugin ITs depend on org.talend.components:salesforce:car:1.55.0-SNAPSHOT,
previously pulled from TalendOpenSourceSnapshot. global-artifacts hosts both
releases and snapshots under the same URL, so enable snapshots on it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… plugin IT

The 1.55.0-SNAPSHOT car is not available in GitHub Packages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lxia-talend
lxia-talend force-pushed the lxia-talend/QTDI-3642_github_packages_pull_check branch from 03cf5af to f24fd91 Compare November 3, 2026 05:44
lxia-talend and others added 5 commits November 4, 2026 13:25
…ory cache

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…d use settings.xml in prepare-next-iteration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…atype stage

Drop the GITHUB_PACKAGES_DEV_DEPLOY parameter: GitHub Packages now deploys
whenever the Sonatype/Nexus stage does (standard branch or MAVEN_DEPLOY).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@acatoire

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

…42_github_packages_pull_check

# Conflicts:
#	Jenkinsfile

Co-authored-by: acatoire <1255625+acatoire@users.noreply.github.com>

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Merged master and resolved the Jenkinsfile conflict, preserving both Maven credential bindings. Merge commit: 9042d9f.

acatoire
acatoire previously approved these changes Nov 10, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread ci/Jenkinsfile-release Resolved
@sonar-rnd

sonar-rnd Bot commented Nov 10, 2026

Copy link
Copy Markdown

… Maven Central 429

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonar-rnd

sonar-rnd Bot commented Nov 11, 2026

Copy link
Copy Markdown

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonar-rnd

sonar-rnd Bot commented Nov 11, 2026

Copy link
Copy Markdown

@sonar-rnd

sonar-rnd Bot commented Nov 16, 2026

Copy link
Copy Markdown

…ckages

Same settings as connectors (QTDI-3610) and Studio; picked up by the forked release:perform build too.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonar-rnd

sonar-rnd Bot commented Nov 16, 2026

Copy link
Copy Markdown

…tors#91 is released

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .mvn/maven.config
@@ -0,0 +1,2 @@
-Daether.connector.connectTimeout=60000
-Daether.connector.requestTimeout=300000

@thboileau thboileau Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I first thought that this value was huge (5min), but I see that the default value is 30 minutes :D

thboileau
thboileau previously approved these changes Nov 16, 2026
@sonar-rnd

sonar-rnd Bot commented Nov 16, 2026

Copy link
Copy Markdown

printf ">> Maven prepare release %s (next-dev: %s; tag: %s)\n" "${releaseVersion}" "${nextVersion}" "${tagName}"

local release_profiles="release,ossrh,gpg2"
local release_profiles="release,gpg-keyring,gpg2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit strange that we have now 2 gpg related profiles...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have different roles: gpg-keyring is the settings profile in .jenkins/settings.xml that provides gpg.keyname/gpg.passphrase (it replaces the former ossrh settings profile, which also carried the Sonatype credentials), while gpg2 is the pom profile that activates maven-gpg-plugin. Both were already needed before; only the settings profile name changed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, but to be honest it's confusing because names a quite similar
is it possible to find a better name?
it's optional

@lxia-talend lxia-talend Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, it is confusing. It is optional so I did not change it in this PR. I will not track it in a Jira work item for now.

<!-- TODO QTDI-3642: once Talend/connectors#91 is released, move the IT component to a jdbc version whose pom uses hikari-cp, then remove this HikariCP exclusion. -->
<exclusions>
<exclusion>
<groupId>com.zaxxer</groupId>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe create a work-item and add to backlog to remove this leftovers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I will create a work item to remove these leftovers once connectors#91 is released (the TODO comment is in both IT poms).

@lxia-talend lxia-talend Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: tracked in QTDI-3836 (remove the HikariCP exclusion once connectors#91 is released). It is also documented in the PR description and by a TODO QTDI-3642 comment in both IT poms.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO comment and PR description is not enough to remove those leftovers the next minute as we release the connectors version for GithubPackages

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created the jira ticket: https://qlik-dev.atlassian.net/browse/QTDI-3836 component-runtime: remove the HikariCP exclusion from the maven plugin ITs once connectors#91 is released

Comment thread talend-component-maven-plugin/pom.xml Resolved
Comment thread Jenkinsfile
and Sonatype/OSSRH repositories. If you do it, be sure that your branch is up to date with master.
currently published by the master branch build on the GitHub Packages repository. If you do it, be sure that your branch is up to date with master.
Only to test Jenkins job evolution, never for real development work.''')
booleanParam(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we remove SONATYPE in the scope of this PR?
it's fishy

scope creep or smth else

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not scope creep: the Sonatype/Central deploy removal is part of QTDI-3791 (releases are pushed to GitHub Packages only). The PR description was stale ('verification-only'); I updated it to cover QTDI-3642 (pull) and QTDI-3791 (push).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

he-he
you say QTDI-3791
but this PR is to QTDI-3642 =) -> almost a definition of a scope creep

anyway

Comment thread Jenkinsfile Resolved
Comment thread component-studio/pom.xml Resolved
Sonatype is no longer used, so the system scope dependency of component-runtime-di is not a limitation anymore:
remove the separate release-zl deploy path and the maven.deploy.skip workaround.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonar-rnd

sonar-rnd Bot commented Nov 16, 2026

Copy link
Copy Markdown

@sonar-rnd

sonar-rnd Bot commented Nov 16, 2026

Copy link
Copy Markdown

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.

6 participants