Skip to content

Commit f6790dd

Browse files
committed
adjust publishing to Maven / Sonatype central
1 parent 539dc5f commit f6790dd

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

java/pom.xml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@
508508
</configuration>
509509
</plugin>
510510
<plugin>
511-
<groupId>org.sonatype.plugins</groupId>
512-
<artifactId>nexus-staging-maven-plugin</artifactId>
513-
<version>1.7.0</version>
511+
<groupId>org.sonatype.central</groupId>
512+
<artifactId>central-publishing-maven-plugin</artifactId>
513+
<version>0.7.0</version>
514514
</plugin>
515515
<plugin>
516516
<groupId>org.apache.maven.plugins</groupId>
@@ -1222,29 +1222,31 @@
12221222
</activation>
12231223
<distributionManagement>
12241224
<repository>
1225-
<id>ossrh</id>
1225+
<id>central</id>
12261226
<name>Eclipse Ditto Repository - Release</name>
1227-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
1227+
<url>https://central.sonatype.com</url>
12281228
</repository>
12291229
<snapshotRepository>
1230-
<id>ossrh</id>
1230+
<id>central</id>
12311231
<name>Eclipse Ditto Repository - Snapshots</name>
1232-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
1232+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
12331233
</snapshotRepository>
12341234
</distributionManagement>
12351235
<build>
12361236
<plugins>
12371237
<!-- see doc: http://central.sonatype.org/pages/apache-maven.html -->
1238+
<!-- see doc: https://eclipse-cbi.github.io/cbi-website/jiro/Nexus-Maven-Central/ -->
1239+
<!-- see doc: https://central.sonatype.org/publish/publish-portal-maven/#automatic-publishing -->
12381240
<plugin>
1239-
<groupId>org.sonatype.plugins</groupId>
1240-
<artifactId>nexus-staging-maven-plugin</artifactId>
1241+
<groupId>org.sonatype.central</groupId>
1242+
<artifactId>central-publishing-maven-plugin</artifactId>
12411243
<extensions>true</extensions>
12421244
<configuration>
1243-
<serverId>ossrh</serverId>
1244-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1245-
<skipStagingRepositoryClose>false</skipStagingRepositoryClose>
1246-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
1247-
<autoDropAfterRelease>true</autoDropAfterRelease>
1245+
<publishingServerId>central</publishingServerId>
1246+
<autoPublish>true</autoPublish>
1247+
<waitUntil>published</waitUntil>
1248+
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
1249+
<deploymentName>Ditto Java Client ${revision}</deploymentName>
12481250
</configuration>
12491251
</plugin>
12501252
</plugins>

0 commit comments

Comments
 (0)