Skip to content

Commit b2c2493

Browse files
authored
Merge pull request #772 from PierreBtz/pbeitz/new-release
[chore] Override the nexus-staging-maven-plugin for the new central publication process
2 parents 14e7674 + e2f5c5e commit b2c2493

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
<name>Nexus Release Repository</name>
9595
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
9696
</repository>
97+
<snapshotRepository>
98+
<id>cloudbees-nexus-snapshots</id>
99+
<name>Sonatype Nexus Snapshots</name>
100+
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/</url>
101+
</snapshotRepository>
97102
</distributionManagement>
98103

99104
<properties>
@@ -310,6 +315,17 @@
310315
<preparationGoals>spotless:apply verify</preparationGoals>
311316
</configuration>
312317
</plugin>
318+
<plugin>
319+
<groupId>org.sonatype.plugins</groupId>
320+
<artifactId>nexus-staging-maven-plugin</artifactId>
321+
<version>1.6.5</version>
322+
<extensions>true</extensions>
323+
<configuration>
324+
<serverId>cloudbees-nexus-snapshots</serverId>
325+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
326+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
327+
</configuration>
328+
</plugin>
313329
</plugins>
314330
</build>
315331

0 commit comments

Comments
 (0)