Skip to content

Commit 8cac837

Browse files
authored
Fix snapshot deployment
1 parent bb0b87f commit 8cac837

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

pom.xml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,6 @@
345345
<show>public</show>
346346
</configuration>
347347
</plugin>
348-
<plugin>
349-
<groupId>org.sonatype.plugins</groupId>
350-
<artifactId>nexus-staging-maven-plugin</artifactId>
351-
<version>1.6.8</version>
352-
<extensions>true</extensions>
353-
<configuration>
354-
<serverId>ossrh</serverId>
355-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
356-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
357-
</configuration>
358-
</plugin>
359348
<plugin>
360349
<artifactId>maven-release-plugin</artifactId>
361350
<version>3.0.0-M6</version>
@@ -369,17 +358,21 @@
369358
<tagNameFormat>release-@{project.version}</tagNameFormat>
370359
</configuration>
371360
</plugin>
361+
<plugin>
362+
<groupId>org.sonatype.central</groupId>
363+
<artifactId>central-publishing-maven-plugin</artifactId>
364+
<version>0.10.0</version>
365+
<configuration>
366+
<publishingServerId>central</publishingServerId>
367+
</configuration>
368+
</plugin>
372369
</plugins>
373370
</build>
374371
<distributionManagement>
375372
<snapshotRepository>
376-
<id>ossrh</id>
377-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
373+
<id>central</id>
374+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
378375
</snapshotRepository>
379-
<repository>
380-
<id>ossrh</id>
381-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
382-
</repository>
383376
</distributionManagement>
384377
</profile>
385378
</profiles>

0 commit comments

Comments
 (0)