Skip to content

Commit 5aa62a5

Browse files
caroline-ttdRelease Workflow
and
Release Workflow
authored
Migrate maven upload from via Legacy OSSRH to Central Publisher Portal (#82)
* Migrate maven upload from via Legacy OSSRH to Central Publisher Portal * Update maven publishing -SNAPSHOT Releases * [CI Pipeline] Released Snapshot version: 4.6.1-alpha-16-SNAPSHOT * Remove snapshot version --------- Co-authored-by: Release Workflow <[email protected]>
1 parent e9bbdd1 commit 5aa62a5

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

pom.xml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
<distributionManagement>
4242
<snapshotRepository>
43-
<id>ossrh</id>
44-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
43+
<id>central</id>
44+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
4545
</snapshotRepository>
4646
</distributionManagement>
4747

@@ -123,17 +123,6 @@
123123
<encoding>UTF-8</encoding>
124124
</configuration>
125125
</plugin>
126-
<plugin>
127-
<groupId>org.sonatype.plugins</groupId>
128-
<artifactId>nexus-staging-maven-plugin</artifactId>
129-
<version>1.6.7</version>
130-
<extensions>true</extensions>
131-
<configuration>
132-
<serverId>ossrh</serverId>
133-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
134-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
135-
</configuration>
136-
</plugin>
137126
<plugin>
138127
<groupId>org.apache.maven.plugins</groupId>
139128
<artifactId>maven-javadoc-plugin</artifactId>
@@ -202,12 +191,19 @@
202191
</execution>
203192
</executions>
204193
</plugin>
205-
206194
<plugin>
207195
<artifactId>maven-surefire-plugin</artifactId>
208196
<version>3.3.1</version>
209197
</plugin>
210-
198+
<plugin>
199+
<groupId>org.sonatype.central</groupId>
200+
<artifactId>central-publishing-maven-plugin</artifactId>
201+
<version>0.7.0</version>
202+
<extensions>true</extensions>
203+
<configuration>
204+
<publishingServerId>central</publishingServerId>
205+
</configuration>
206+
</plugin>
211207
</plugins>
212208
</build>
213209
</project>

0 commit comments

Comments
 (0)