Skip to content

Commit 78afb46

Browse files
authored
Merge pull request #2 from MetricsHub/feature/update-deployment
Updated Deployment Settings to Publish on https://central.sonatype.com
2 parents 1931804 + d9f1a99 commit 78afb46

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pom.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
<distributionManagement>
2222
<snapshotRepository>
2323
<id>ossrh</id>
24-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
24+
<url>https://central.sonatype.com/content/repositories/snapshots</url>
2525
</snapshotRepository>
2626
<repository>
2727
<id>ossrh</id>
28-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
28+
<url>https://central.sonatype.com/service/local/staging/deploy/maven2/</url>
2929
</repository>
3030
</distributionManagement>
3131

@@ -178,9 +178,9 @@
178178
</plugin>
179179

180180
<plugin>
181-
<groupId>org.sonatype.plugins</groupId>
182-
<artifactId>nexus-staging-maven-plugin</artifactId>
183-
<version>1.7.0</version>
181+
<groupId>org.sonatype.central</groupId>
182+
<artifactId>central-publishing-maven-plugin</artifactId>
183+
<version>0.7.0</version>
184184
</plugin>
185185

186186
</plugins>
@@ -443,15 +443,14 @@
443443
</executions>
444444
</plugin>
445445

446-
<!-- nexus-staging (Sonatype) -->
446+
<!-- Maven Central (Sonatype) publishing https://central.sonatype.com -->
447447
<plugin>
448-
<groupId>org.sonatype.plugins</groupId>
449-
<artifactId>nexus-staging-maven-plugin</artifactId>
448+
<groupId>org.sonatype.central</groupId>
449+
<artifactId>central-publishing-maven-plugin</artifactId>
450450
<extensions>true</extensions>
451451
<configuration>
452452
<serverId>ossrh</serverId>
453-
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
454-
<autoReleaseAfterClose>${env.AUTO_RELEASE_AFTER_CLOSE}</autoReleaseAfterClose>
453+
<autoPublish>${env.AUTO_RELEASE_AFTER_CLOSE}</autoPublish>
455454
</configuration>
456455
</plugin>
457456

0 commit comments

Comments
 (0)