Skip to content

Commit e8675ec

Browse files
committed
fix: java deploy snapshot
1 parent 5e1149c commit e8675ec

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

java/pom.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,18 @@
121121
<groupId>pl.project13.maven</groupId>
122122
<artifactId>git-commit-id-plugin</artifactId>
123123
</plugin>
124-
<plugin>
125-
<!-- deploy to sonatype -->
126-
<groupId>org.sonatype.plugins</groupId>
127-
<artifactId>nexus-staging-maven-plugin</artifactId>
124+
<plugin>
125+
<groupId>org.sonatype.central</groupId>
126+
<artifactId>central-publishing-maven-plugin</artifactId>
127+
<version>0.8.0</version>
128+
<extensions>true</extensions>
129+
<configuration>
130+
<publishingServerId>ossrh</publishingServerId>
131+
<autoPublish>true</autoPublish>
132+
<!--
133+
<waitUntil>published</waitUntil>
134+
-->
135+
</configuration>
128136
</plugin>
129137
<plugin>
130138
<!-- create jar with source code -->
@@ -479,8 +487,8 @@
479487

480488
<distributionManagement>
481489
<snapshotRepository>
482-
<id>ossrh</id>
483-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
490+
<id>ossrh</id>
491+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
484492
</snapshotRepository>
485493
<repository>
486494
<id>ossrh</id>

0 commit comments

Comments
 (0)