Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .jenkins/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<id>central.portal</id>
<username>${env.OSSRH_USER}</username>
<password>${env.OSSRH_PASS}</password>
</server>
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pipeline {
}
else {
repo = ['oss.sonatype.org',
'https://oss.sonatype.org/content/repositories/snapshots/org/talend/sdk/component/']
'https://central.sonatype.com/repository/maven-snapshots/org/talend/sdk/component/']
}

jenkinsJobTools.job_description_append("Maven artefact deployed as ${finalVersion} on [${repo[0]}](${repo[1]}) ")
Expand Down
53 changes: 33 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,11 @@
<url>https://github.com/${scm.repository}</url>
</scm>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<!-- looks like release and snapshot plugins are handled by sonatype plugin from the box -->
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>central.portal</id>
<name>Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>

Expand Down Expand Up @@ -255,7 +253,7 @@
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
<gpg-plugin.version>3.2.7</gpg-plugin.version>
<nexus-staging-plugin.version>1.7.0</nexus-staging-plugin.version>
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
<maven-site-plugin.version>3.21.0</maven-site-plugin.version>
<spotless-maven-plugin.version>2.44.4</spotless-maven-plugin.version>
<jib-maven-plugin.version>3.4.5</jib-maven-plugin.version>
Expand Down Expand Up @@ -942,11 +940,15 @@

<repositories>
<repository>
<id>central.portal</id>
<name>Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
Copy link
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...

<snapshots>
<enabled>true</enabled>
</snapshots>
<id>oss.snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<releases>
Expand Down Expand Up @@ -1004,6 +1006,16 @@
<id>TalendOpenSourceRelease</id>
<url>https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceRelease/</url>
</pluginRepository>
<pluginRepository>
<id>Cloudera.pub</id>
<url>https://repository.cloudera.com/content/repositories/public</url>
Comment on lines +1010 to +1011
Copy link
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
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
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.

<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<build>
Expand Down Expand Up @@ -1397,9 +1409,9 @@
<version>${gpg-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-plugin.version}</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -1939,13 +1951,13 @@
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central.portal</publishingServerId>
<centralBaseUrl>https://central.sonatype.com</centralBaseUrl>
<failOnBuildFailure>true</failOnBuildFailure>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -1993,10 +2005,11 @@
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
<skipPublishing>true</skipPublishing>
</configuration>
</plugin>
</plugins>
Expand Down
Loading