Skip to content

Commit 92f57c6

Browse files
committed
publish: using the Portal OSSRH Staging API
1 parent bf80e96 commit 92f57c6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pom.xml

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

@@ -143,6 +143,15 @@
143143

144144
<build>
145145
<plugins>
146+
<plugin>
147+
<groupId>org.sonatype.central</groupId>
148+
<artifactId>central-publishing-maven-plugin</artifactId>
149+
<version>0.8.0</version>
150+
<extensions>true</extensions>
151+
<configuration>
152+
<publishingServerId>central</publishingServerId>
153+
</configuration>
154+
</plugin>
146155
<plugin>
147156
<groupId>org.apache.maven.plugins</groupId>
148157
<artifactId>maven-eclipse-plugin</artifactId>

0 commit comments

Comments
 (0)