Skip to content

Commit 2cd2baa

Browse files
committed
add central-publishing-maven-plugin
1 parent 2c27114 commit 2cd2baa

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<distributionManagement>
6060
<repository>
6161
<id>central</id>
62-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
62+
<url>https://central.sonatype.com/service/local/staging/deploy/maven2/</url>
6363
</repository>
6464
<snapshotRepository>
6565
<id>central</id>
@@ -229,6 +229,7 @@
229229
</configuration>
230230
</plugin>
231231

232+
<!--
232233
<plugin>
233234
<groupId>org.sonatype.plugins</groupId>
234235
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -240,6 +241,7 @@
240241
<autoReleaseAfterClose>true</autoReleaseAfterClose>
241242
</configuration>
242243
</plugin>
244+
-->
243245

244246
<plugin>
245247
<groupId>org.apache.maven.plugins</groupId>
@@ -407,6 +409,16 @@
407409
</execution>
408410
</executions>
409411
</plugin>
412+
<plugin>
413+
<groupId>org.sonatype.central</groupId>
414+
<artifactId>central-publishing-maven-plugin</artifactId>
415+
<version>0.7.0</version>
416+
<extensions>true</extensions>
417+
<configuration>
418+
<publishingServerId>central</publishingServerId>
419+
<autoPublish>true</autoPublish>
420+
</configuration>
421+
</plugin>
410422
</plugins>
411423
</build>
412424
</profile>

0 commit comments

Comments
 (0)