Skip to content

Commit 384c9ee

Browse files
committed
Use OSSRH for release
(cherry picked from commit 996a161)
1 parent 74b044a commit 384c9ee

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

pom.xml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
<maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
8282
<maven.bundle.plugin.version>3.2.0</maven.bundle.plugin.version>
8383
<maven.packagecloud.wagon.version>0.0.6</maven.packagecloud.wagon.version>
84+
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
8485
<checksum.maven.plugin.version>1.8</checksum.maven.plugin.version>
8586
<jshell-maven-plugin.version>1.3</jshell-maven-plugin.version>
8687

@@ -494,9 +495,9 @@
494495
<profile>
495496
<!--
496497
The "ossrh-release" Maven profile is used to push release artifacts to a
497-
Sonatype staging repository.
498+
Sonatype snapshots repository.
498499
-->
499-
<id>ossrh-release</id>
500+
<id>snapshots</id>
500501
<build>
501502
<plugins>
502503
<plugin>
@@ -546,13 +547,25 @@
546547
</profile>
547548

548549
<!--
549-
The "bintray-release" Maven profile is used to push release artifacts to the
550-
Bintray Release Maven Repository.
550+
The "release" Maven profile is used to push release artifacts to OSSRH
551551
-->
552552
<profile>
553-
<id>bintray-release</id>
553+
<id>release</id>
554554
<build>
555555
<plugins>
556+
557+
<plugin>
558+
<groupId>org.sonatype.plugins</groupId>
559+
<artifactId>nexus-staging-maven-plugin</artifactId>
560+
<version>${nexus-staging-maven-plugin.version}</version>
561+
<extensions>true</extensions>
562+
<configuration>
563+
<serverId>ossrh</serverId>
564+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
565+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
566+
</configuration>
567+
</plugin>
568+
556569
<plugin>
557570
<groupId>org.apache.maven.plugins</groupId>
558571
<artifactId>maven-javadoc-plugin</artifactId>
@@ -593,9 +606,8 @@
593606
</build>
594607
<distributionManagement>
595608
<repository>
596-
<id>bintray-rabbitmq-maven</id>
597-
<name>rabbitmq-maven</name>
598-
<url>https://api.bintray.com/maven/rabbitmq/maven/com.rabbitmq:amqp-client/;publish=1</url>
609+
<id>ossrh</id>
610+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
599611
</repository>
600612
</distributionManagement>
601613
</profile>

0 commit comments

Comments
 (0)