Skip to content

Commit 2aec2a6

Browse files
committed
Use Sonatype for releases
1 parent dc40858 commit 2aec2a6

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

pom.xml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
8484
<maven.failsafe.plugin.version>2.22.2</maven.failsafe.plugin.version>
8585
<maven.packagecloud.wagon.version>0.0.6</maven.packagecloud.wagon.version>
86+
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
8687
<checksum.maven.plugin.version>1.8</checksum.maven.plugin.version>
8788

8889
<!-- because of https://issues.apache.org/jira/browse/MRESOURCES-99 -->
@@ -454,13 +455,26 @@
454455
</profile>
455456

456457
<!--
457-
The "bintray-release" Maven profile is used to push release artifacts to the
458-
Bintray Release Maven Repository.
458+
The "release" Maven profile is used to push release artifacts to OSSRH.
459459
-->
460460
<profile>
461-
<id>bintray-release</id>
461+
<id>release</id>
462462
<build>
463463
<plugins>
464+
465+
<plugin>
466+
<groupId>org.sonatype.plugins</groupId>
467+
<artifactId>nexus-staging-maven-plugin</artifactId>
468+
<version>${nexus-staging-maven-plugin.version}</version>
469+
<extensions>true</extensions>
470+
<configuration>
471+
<serverId>ossrh</serverId>
472+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
473+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
474+
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
475+
</configuration>
476+
</plugin>
477+
464478
<plugin>
465479
<groupId>org.apache.maven.plugins</groupId>
466480
<artifactId>maven-javadoc-plugin</artifactId>
@@ -501,9 +515,8 @@
501515
</build>
502516
<distributionManagement>
503517
<repository>
504-
<id>bintray-rabbitmq-maven</id>
505-
<name>rabbitmq-maven</name>
506-
<url>https://api.bintray.com/maven/rabbitmq/maven/com.rabbitmq:perf-test/;publish=1</url>
518+
<id>ossrh</id>
519+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
507520
</repository>
508521
</distributionManagement>
509522
</profile>
@@ -822,7 +835,7 @@
822835
</profile>
823836

824837
<profile>
825-
<id>ossrh-release</id>
838+
<id>snapshots</id>
826839
<build>
827840
<plugins>
828841
<plugin>

0 commit comments

Comments
 (0)