Skip to content

chore(QTDI-1553): migrate from osshr to central - #1068

Merged
ozhelezniak-talend merged 3 commits into
masterfrom
ozhelezniak/QTDI-1553_nexus_central
Jul 4, 2025
Merged

ozhelezniak-talend merged 3 commits into
masterfrom
ozhelezniak/QTDI-1553_nexus_central

Conversation

@ozhelezniak-talend

@ozhelezniak-talend ozhelezniak-talend commented Jun 26, 2025 •

Copy link
Copy Markdown
Contributor

Requirements

https://qlik-dev.atlassian.net/browse/QTDI-1553

Why this PR is needed?

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

@sonar-eks

This comment has been minimized.

1 similar comment
@sonar-eks

This comment has been minimized.

@sonar-eks

This comment has been minimized.

This comment was marked as outdated.

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.

Pull Request Overview

Updates the project’s Maven configuration to use Sonatype Central Portal instead of OSSRH, swaps out the Nexus staging plugin for the central-publishing plugin, and aligns Jenkins credentials.

  • Replace all OSSRH endpoints and plugin IDs with central.sonatype.com URLs and central-publishing-maven-plugin.
  • Add Cloudera public plugin repository and update Jenkins server ID to central.portal.
  • Remove explicit release repository in favor of plugin defaults (per inline comment).

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pom.xml Switched distributionManagement and repositories to central portal URLs; replaced nexus-staging plugin with central-publishing plugin; added Cloudera public pluginRepository.
.jenkins/settings.xml Changed server <id> from ossrh to central.portal for Jenkins credentials.
Comments suppressed due to low confidence (3)

pom.xml:139

  • [nitpick] This inline comment is vague; consider clarifying which plugin features automatically handle releases and snapshots or remove it if no longer needed.
    <!-- looks like release and snapshot plugins are handled by sonatype plugin from the box -->

.jenkins/settings.xml:8

  • [nitpick] The server ID central.portal no longer matches the OSSRH_* environment variable names; consider renaming the env vars or adding documentation so credentials map correctly.
      <id>central.portal</id>

pom.xml:139

  • The <repository> section for releases was removed—ensure you explicitly declare a <repository> for releases or verify that central-publishing-maven-plugin will publish releases correctly to avoid deployment failures.
    <!-- looks like release and snapshot plugins are handled by sonatype plugin from the box -->

Comment thread pom.xml Resolved

@undx undx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left question.
Will 👁️ for any other may miss.

Comment thread pom.xml Outdated
<repository>
<id>central-portal-snapshots</id>
<name>Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

see releases also I think...

Comment thread pom.xml Outdated
Comment on lines +1007 to +1011
<id>Cloudera.pub</id>
<url>https://repository.cloudera.com/content/repositories/public</url>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cloudera for releases? (see my previous comment).

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.

Cloudera is to load maven plug-in. The new is placed there

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.

And I didn't understand this comment.

@undx

undx commented Jun 26, 2025

Copy link
Copy Markdown
Member

Found some extra references to sonatype.org:

repo = ['oss.sonatype.org',
'https://oss.sonatype.org/content/repositories/snapshots/org/talend/sdk/component/']

def snapshotLink = "https://oss.sonatype.org/service/local/artifact/maven/content?r=snapshots&g=org.talend.sdk.component&a=documentation-sample&v=${project.version}&e=zip&c=${it}-distribution"
def releaseLink = "https://repo.maven.apache.org/maven2/org/talend/sdk/component/documentation-sample/${project.version.replace('-SNAPSHOT', '')}/documentation-sample-${project.version.replace('-SNAPSHOT', '')}-${it}-distribution.zip"

Also in master pom.xml.

Also, did not checked if still mirrored (I think so), check maybe all references to repo.maven.apache.org

.target("https://repo.maven.apache.org/maven2/org/talend/sdk/component/component-starter-server/");

@sonar-eks

This comment has been minimized.

3 similar comments
@sonar-eks

This comment has been minimized.

@sonar-eks

This comment has been minimized.

@sonar-eks

This comment has been minimized.

@ozhelezniak-talend
ozhelezniak-talend force-pushed the ozhelezniak/QTDI-1553_nexus_central branch from 94f94a3 to 4c39c23 Compare June 27, 2025 09:41
@sonar-eks

This comment has been minimized.

@ozhelezniak-talend
ozhelezniak-talend force-pushed the ozhelezniak/QTDI-1553_nexus_central branch from 4c39c23 to 98dddef Compare July 4, 2025 08:13
@sonar-eks

This comment has been minimized.

@ozhelezniak-talend
ozhelezniak-talend force-pushed the ozhelezniak/QTDI-1553_nexus_central branch from a29405c to 5c91e57 Compare July 4, 2025 10:06
@ozhelezniak-talend
ozhelezniak-talend requested a review from undx July 4, 2025 10:06
@sonar-eks

sonar-eks Bot commented Jul 4, 2025

Copy link
Copy Markdown

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (65.90% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.40% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

@ozhelezniak-talend
ozhelezniak-talend merged commit 27ed048 into master Jul 4, 2025
@ozhelezniak-talend
ozhelezniak-talend deleted the ozhelezniak/QTDI-1553_nexus_central branch July 4, 2025 14:35
fdesiles added a commit that referenced this pull request Oct 29, 2026
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>
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.

4 participants