Skip to content

Commit f962005

Browse files
author
mkiran
committed
Migrate from OSSRH to Maven Central Publishing
1 parent 8b5c28e commit f962005

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pom.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</dependencies>
7070

7171
<!-- distributionManagement -->
72-
<distributionManagement>
72+
<!--<distributionManagement>
7373
<snapshotRepository>
7474
<id>ossrh</id>
7575
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
@@ -78,7 +78,7 @@
7878
<id>ossrh</id>
7979
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
8080
</repository>
81-
</distributionManagement>
81+
</distributionManagement>-->
8282

8383
<build>
8484
<plugins>
@@ -108,9 +108,9 @@
108108
<version>2.5.3</version>
109109
</plugin>
110110
<plugin>
111-
<groupId>org.sonatype.plugins</groupId>
112-
<artifactId>nexus-staging-maven-plugin</artifactId>
113-
<version>1.6.13</version>
111+
<groupId>org.sonatype.central</groupId>
112+
<artifactId>central-publishing-maven-plugin</artifactId>
113+
<version>0.9.0</version>
114114
<extensions>true</extensions>
115115
<executions>
116116
<execution>
@@ -122,9 +122,7 @@
122122
</execution>
123123
</executions>
124124
<configuration>
125-
<serverId>ossrh</serverId>
126-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
127-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
125+
<publishingServerId>central</publishingServerId>
128126
</configuration>
129127
</plugin>
130128
</plugins>

0 commit comments

Comments
 (0)