Skip to content

Commit 766d2b3

Browse files
committed
build: attempt to fix maven release process
1 parent d97a058 commit 766d2b3

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

pom.xml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242

4343
<distributionManagement>
4444
<repository>
45-
<id>ossrh</id>
46-
<name>Nexus Release Repository</name>
47-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
45+
<id>central</id>
46+
<name>Maven Central Release Repository</name>
47+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/</url>
4848
</repository>
4949
<snapshotRepository>
50-
<id>ossrh</id>
51-
<name>Sonatype Nexus Snapshots</name>
52-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
50+
<id>central</id>
51+
<name>Maven Central Snapshots</name>
52+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5353
</snapshotRepository>
5454
</distributionManagement>
5555

@@ -186,7 +186,6 @@
186186
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
187187
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
188188
<mojo-executor.version>2.3.1</mojo-executor.version>
189-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
190189
<plexus-utils.version>4.0.2</plexus-utils.version>
191190
<stork-maven-plugin.version>3.2.0</stork-maven-plugin.version>
192191
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
@@ -1407,25 +1406,6 @@
14071406
</systemPropertyVariables>
14081407
</configuration>
14091408
</plugin>
1410-
1411-
<!-- Deploy plugin -->
1412-
<plugin>
1413-
<groupId>org.sonatype.plugins</groupId>
1414-
<artifactId>nexus-staging-maven-plugin</artifactId>
1415-
<version>${nexus-staging-maven-plugin.version}</version>
1416-
<extensions>true</extensions>
1417-
<configuration>
1418-
<serverId>ossrh</serverId>
1419-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1420-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
1421-
</configuration>
1422-
</plugin>
1423-
1424-
<plugin>
1425-
<groupId>org.apache.maven.plugins</groupId>
1426-
<artifactId>maven-deploy-plugin</artifactId>
1427-
<version>${maven-deploy-plugin.version}</version>
1428-
</plugin>
14291409
</plugins>
14301410

14311411
</build>

0 commit comments

Comments
 (0)