-
-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Milestone
Description
Per the below email from Sonatype, we will have to migrate RestFB from OSSRH to Maven Central prior to June 30.
As you may have heard, OSSRH is reaching end of life on June 30, 2025. OSSRH users need to migrate their namespaces to the Central Portal as soon as possible.
Instructions for self migration are located here: https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/#self-service-migration
To make the transition smoother we will be automatically migrating publishers that have not used http://oss.sonatype.org/ or http://s01.sonatype.org/ to publish artifacts in some time starting with the oldest and working our way forward. To avoid disruption to your publishing processes we strongly encourage migrating before the June 30, 2025 deadline.
To do this, the following steps are required:
-
Manually migrate the
com.restfbOSSRH namespace to Maven Central via the portal at https://central.sonatype.com/publishing/namespaces (I will take care of this). -
Make the following changes to
pom.xml:
Replace the following:
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>with:
<distributionManagement>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</distributionManagement>and replace the following:
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
</configuration>
</plugin>with:
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central-portal</publishingServerId>
</configuration>
</plugin>- Visit https://central.sonatype.com/account and choose to generate a new user token (this will provide you with a username and password). This is required; old credentials you might have will not work with Maven Central. Edit your
~/.m2/settings.xmland add these entries with the newly-generated username and password as shown here:
<server>
<id>central-portal</id>
<username>[elided]</username>
<password>[elided]]</password>
</server>
<server>
<id>central-portal-snapshots</id>
<username>[elided]</username>
<password>[elided]]</password>
</server> - You are now ready to publish using the normal
mvn clean deployapproach.-SNAPSHOTversions are available immediately and live for up to 90 days. Non-snapshot versions (regular releases) must be manually approved via https://central.sonatype.com/publishing/deployments.