Skip to content

Commit 46be685

Browse files
committed
Add release repositories
1 parent 25a8388 commit 46be685

File tree

1 file changed

+152
-5
lines changed

1 file changed

+152
-5
lines changed

pom.xml

Lines changed: 152 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
</developers>
4141

4242
<scm>
43-
<url>https://github.com/rabbitmq/rabbitmq-java-client.git</url>
44-
<connection>scm:git:https://github.com/rabbitmq/rabbitmq-java-client.git</connection>
43+
<url>https://github.com/rabbitmq/rabbitmq-java-client</url>
44+
<connection>scm:git:git://github.com/rabbitmq/rabbitmq-java-client.git</connection>
45+
<developerConnection>scm:git:git@github.com:rabbitmq/rabbitmq-java-client.git</developerConnection>
4546
</scm>
4647

4748
<organization>
@@ -90,6 +91,10 @@
9091
<test-broker.B.nodename>hare@localhost</test-broker.B.nodename>
9192
<test-broker.B.node_port>5673</test-broker.B.node_port>
9293
<test-broker.B.config_file>${project.build.directory}/test-classes/${test-broker.B.nodename}</test-broker.B.config_file>
94+
95+
<!-- to sign artifacts when releasing -->
96+
<gpg.keyname>6026DFCA</gpg.keyname>
97+
<nexus-staging-maven-plugin.version>1.6.4</nexus-staging-maven-plugin.version>
9398
</properties>
9499

95100
<profiles>
@@ -404,10 +409,141 @@
404409

405410
<profile>
406411
<!--
407-
The "release" Maven profile is used to push release artifacts to a
412+
The "ossrh-release" Maven profile is used to push release artifacts to a
408413
Sonatype staging repository.
409414
-->
410-
<id>release</id>
415+
<id>ossrh-release</id>
416+
<build>
417+
<plugins>
418+
<plugin>
419+
<groupId>org.apache.maven.plugins</groupId>
420+
<artifactId>maven-source-plugin</artifactId>
421+
<version>3.0.1</version>
422+
<executions>
423+
<execution>
424+
<goals>
425+
<goal>jar</goal>
426+
</goals>
427+
</execution>
428+
</executions>
429+
</plugin>
430+
<plugin>
431+
<groupId>org.apache.maven.plugins</groupId>
432+
<artifactId>maven-javadoc-plugin</artifactId>
433+
<version>2.10.4</version>
434+
<configuration>
435+
<additionalparam>${javadoc.opts}</additionalparam>
436+
</configuration>
437+
<executions>
438+
<execution>
439+
<goals>
440+
<goal>jar</goal>
441+
</goals>
442+
</execution>
443+
</executions>
444+
</plugin>
445+
446+
<plugin>
447+
<groupId>org.apache.maven.plugins</groupId>
448+
<artifactId>maven-gpg-plugin</artifactId>
449+
<version>1.6</version>
450+
<executions>
451+
<execution>
452+
<id>sign-artifacts</id>
453+
<phase>package</phase>
454+
<goals>
455+
<goal>sign</goal>
456+
</goals>
457+
<configuration>
458+
<keyname>${gpg.keyname}</keyname>
459+
</configuration>
460+
</execution>
461+
</executions>
462+
</plugin>
463+
</plugins>
464+
</build>
465+
<distributionManagement>
466+
<snapshotRepository>
467+
<id>ossrh</id>
468+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
469+
</snapshotRepository>
470+
<repository>
471+
<id>ossrh</id>
472+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
473+
</repository>
474+
</distributionManagement>
475+
</profile>
476+
477+
<!--
478+
The "bintray-release" Maven profile is used to push release artifacts to the
479+
Bintray Release Maven Repository.
480+
-->
481+
<profile>
482+
<id>bintray-release</id>
483+
<build>
484+
<plugins>
485+
<plugin>
486+
<groupId>org.apache.maven.plugins</groupId>
487+
<artifactId>maven-source-plugin</artifactId>
488+
<version>3.0.1</version>
489+
<executions>
490+
<execution>
491+
<goals>
492+
<goal>jar</goal>
493+
</goals>
494+
</execution>
495+
</executions>
496+
</plugin>
497+
<plugin>
498+
<groupId>org.apache.maven.plugins</groupId>
499+
<artifactId>maven-javadoc-plugin</artifactId>
500+
<version>2.10.4</version>
501+
<configuration>
502+
<additionalparam>${javadoc.opts}</additionalparam>
503+
</configuration>
504+
<executions>
505+
<execution>
506+
<goals>
507+
<goal>jar</goal>
508+
</goals>
509+
</execution>
510+
</executions>
511+
</plugin>
512+
513+
<plugin>
514+
<groupId>org.apache.maven.plugins</groupId>
515+
<artifactId>maven-gpg-plugin</artifactId>
516+
<version>1.6</version>
517+
<executions>
518+
<execution>
519+
<id>sign-artifacts</id>
520+
<phase>package</phase>
521+
<goals>
522+
<goal>sign</goal>
523+
</goals>
524+
<configuration>
525+
<keyname>${gpg.keyname}</keyname>
526+
</configuration>
527+
</execution>
528+
</executions>
529+
</plugin>
530+
</plugins>
531+
</build>
532+
<distributionManagement>
533+
<repository>
534+
<id>bintray-rabbitmq-maven</id>
535+
<name>rabbitmq-maven</name>
536+
<url>https://api.bintray.com/maven/rabbitmq/maven/java-client/;publish=1</url>
537+
</repository>
538+
</distributionManagement>
539+
</profile>
540+
541+
<!--
542+
The "milestone" Maven profile is used to push release artifacts to the
543+
Bintray Milestones Maven Repository.
544+
-->
545+
<profile>
546+
<id>milestone</id>
411547
<build>
412548
<plugins>
413549
<plugin>
@@ -445,16 +581,27 @@
445581
<executions>
446582
<execution>
447583
<id>sign-artifacts</id>
448-
<phase>verify</phase>
584+
<phase>package</phase>
449585
<goals>
450586
<goal>sign</goal>
451587
</goals>
588+
<configuration>
589+
<keyname>${gpg.keyname}</keyname>
590+
</configuration>
452591
</execution>
453592
</executions>
454593
</plugin>
455594
</plugins>
456595
</build>
596+
<distributionManagement>
597+
<repository>
598+
<id>bintray-rabbitmq-maven-milestones</id>
599+
<name>rabbitmq-maven-milestones</name>
600+
<url>https://api.bintray.com/maven/rabbitmq/maven-milestones/java-client/;publish=1</url>
601+
</repository>
602+
</distributionManagement>
457603
</profile>
604+
458605
</profiles>
459606

460607
<dependencies>

0 commit comments

Comments
 (0)