Skip to content

Commit a868f2b

Browse files
gnodetclaude
andcommitted
Migrate deployment from oss.sonatype.org to central.sonatype.com
Replace nexus-staging-maven-plugin with central-publishing-maven-plugin and update all repository URLs to the new Sonatype Central portal. Upgrade maven-gpg-plugin from 1.6 to 3.2.8 with bestPractices enabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 300aa78 commit a868f2b

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

‎pom.xml‎

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@
8989

9090
<distributionManagement>
9191
<repository>
92-
<id>sonatype-nexus-staging</id>
93-
<name>Sonatype Staging Repository</name>
94-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
92+
<id>central</id>
93+
<url>https://central.sonatype.com</url>
9594
</repository>
9695
<snapshotRepository>
97-
<id>sonatype-nexus-snapshots</id>
98-
<name>Sonatype Snapshot Repository</name>
99-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
96+
<id>central</id>
97+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
10098
</snapshotRepository>
10199
</distributionManagement>
102100

@@ -134,9 +132,9 @@
134132
<snapshots>
135133
<enabled>true</enabled>
136134
</snapshots>
137-
<id>sonatype-nexus-snapshots</id>
138-
<name>Sonatype Snapshot Repository</name>
139-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
135+
<id>central-snapshots</id>
136+
<name>Central Snapshot Repository</name>
137+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
140138
</repository>
141139
</repositories>
142140

@@ -326,13 +324,14 @@
326324
<version>3.0.0-M1</version>
327325
</plugin>
328326
<plugin>
329-
<groupId>org.sonatype.plugins</groupId>
330-
<artifactId>nexus-staging-maven-plugin</artifactId>
331-
<version>1.6.8</version>
327+
<groupId>org.sonatype.central</groupId>
328+
<artifactId>central-publishing-maven-plugin</artifactId>
329+
<version>0.9.0</version>
332330
<extensions>true</extensions>
333331
<configuration>
334-
<serverId>ossrh</serverId>
335-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
332+
<publishingServerId>central</publishingServerId>
333+
<autoPublish>true</autoPublish>
334+
<waitUntil>published</waitUntil>
336335
</configuration>
337336
</plugin>
338337
<plugin>
@@ -410,7 +409,10 @@
410409
<plugin>
411410
<groupId>org.apache.maven.plugins</groupId>
412411
<artifactId>maven-gpg-plugin</artifactId>
413-
<version>1.6</version>
412+
<version>3.2.8</version>
413+
<configuration>
414+
<bestPractices>true</bestPractices>
415+
</configuration>
414416
<executions>
415417
<execution>
416418
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)