Skip to content

Commit ab99cfb

Browse files
Merge pull request #240 from ManikaSaiKiran/release-v6.5.1
Migrate from OSSRH to Maven Central Publishing
2 parents 3cdda4f + cbd2b9c commit ab99cfb

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

pom.xml

Lines changed: 18 additions & 9 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>
@@ -107,19 +107,28 @@
107107
<artifactId>maven-release-plugin</artifactId>
108108
<version>2.4.1</version>
109109
</plugin>
110+
<!--<plugin>
111+
<groupId>org.sonatype.plugins</groupId>
112+
<artifactId>nexus-staging-maven-plugin</artifactId>
113+
<version>1.6.6</version>
114+
<extensions>true</extensions>
115+
<configuration>
116+
<serverId>ossrh</serverId>
117+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
118+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
119+
</configuration>
120+
</plugin>-->
110121
<plugin>
111-
<groupId>org.sonatype.plugins</groupId>
112-
<artifactId>nexus-staging-maven-plugin</artifactId>
113-
<version>1.6.6</version>
122+
<groupId>org.sonatype.central</groupId>
123+
<artifactId>central-publishing-maven-plugin</artifactId>
124+
<version>0.9.0</version>
114125
<extensions>true</extensions>
115126
<configuration>
116-
<serverId>ossrh</serverId>
117-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
118-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
127+
<publishingServerId>central</publishingServerId>
119128
</configuration>
120129
</plugin>
121130
</plugins>
122-
</build>
131+
</build>
123132

124133
<profiles>
125134
<profile>

0 commit comments

Comments
 (0)