Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit ee8ec97

Browse files
committed
JERSEY-3122: Jersey release improvements
* Using sonatype staging maven plugin for atomic deployment to maven.java.net * Adding a possiblity to change preparation goals in the release. * Added maven-gpg-plugin version to avoid warnings during releases. * fixed release.tests.args for testsSkip profile Change-Id: Ie7f9dd0697c0e2f6a48bd95c20ba31cd3e4faec3
1 parent 69eaf21 commit ee8ec97

3 files changed

Lines changed: 89 additions & 2 deletions

File tree

bom/pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,5 +433,40 @@
433433
</site>
434434
</distributionManagement>
435435
</profile>
436+
<profile>
437+
<id>release</id>
438+
<activation>
439+
<activeByDefault>false</activeByDefault>
440+
</activation>
441+
<build>
442+
<plugins>
443+
<plugin>
444+
<groupId>org.apache.maven.plugins</groupId>
445+
<artifactId>maven-deploy-plugin</artifactId>
446+
<configuration>
447+
<skip>true</skip>
448+
</configuration>
449+
</plugin>
450+
<plugin>
451+
<groupId>org.sonatype.plugins</groupId>
452+
<artifactId>nexus-staging-maven-plugin</artifactId>
453+
<version>1.6.7</version>
454+
<executions>
455+
<execution>
456+
<id>default-deploy</id>
457+
<phase>deploy</phase>
458+
<goals>
459+
<goal>deploy</goal>
460+
</goals>
461+
</execution>
462+
</executions>
463+
<configuration>
464+
<serverId>jvnet-nexus-staging</serverId>
465+
<nexusUrl>https://maven.java.net/</nexusUrl>
466+
</configuration>
467+
</plugin>
468+
</plugins>
469+
</build>
470+
</profile>
436471
</profiles>
437472
</project>

pom.xml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<configuration>
387387
<mavenExecutorId>forked-path</mavenExecutorId>
388388
<autoVersionSubmodules>true</autoVersionSubmodules>
389-
<preparationGoals>clean install</preparationGoals>
389+
<preparationGoals>${release.preparationGoals}</preparationGoals>
390390
<pushChanges>false</pushChanges>
391391
<useReleaseProfile>false</useReleaseProfile>
392392
<arguments>${release.tests.args} ${release.arguments}</arguments>
@@ -713,7 +713,7 @@
713713
</property>
714714
</activation>
715715
<properties>
716-
<skip.release.tests>-Dmaven.test.skip=true -Dskip.tests=true</skip.release.tests>
716+
<release.tests.args>-Dskip.tests=true</release.tests.args>
717717
<skip.tests>true</skip.tests>
718718
</properties>
719719
</profile>
@@ -792,6 +792,20 @@
792792
<activeByDefault>false</activeByDefault>
793793
</activation>
794794
<build>
795+
<pluginManagement>
796+
<plugins>
797+
<plugin>
798+
<groupId>org.sonatype.plugins</groupId>
799+
<artifactId>nexus-staging-maven-plugin</artifactId>
800+
<version>1.6.7</version>
801+
</plugin>
802+
<plugin>
803+
<groupId>org.apache.maven.plugins</groupId>
804+
<artifactId>maven-gpg-plugin</artifactId>
805+
<version>1.6</version>
806+
</plugin>
807+
</plugins>
808+
</pluginManagement>
795809
<plugins>
796810
<plugin>
797811
<groupId>org.apache.maven.plugins</groupId>
@@ -804,6 +818,26 @@
804818
<plugin>
805819
<groupId>org.apache.maven.plugins</groupId>
806820
<artifactId>maven-deploy-plugin</artifactId>
821+
<configuration>
822+
<skip>true</skip>
823+
</configuration>
824+
</plugin>
825+
<plugin>
826+
<groupId>org.sonatype.plugins</groupId>
827+
<artifactId>nexus-staging-maven-plugin</artifactId>
828+
<executions>
829+
<execution>
830+
<id>default-deploy</id>
831+
<phase>deploy</phase>
832+
<goals>
833+
<goal>deploy</goal>
834+
</goals>
835+
</execution>
836+
</executions>
837+
<configuration>
838+
<serverId>jvnet-nexus-staging</serverId>
839+
<nexusUrl>https://maven.java.net/</nexusUrl>
840+
</configuration>
807841
</plugin>
808842
</plugins>
809843
</build>
@@ -1820,6 +1854,7 @@
18201854
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18211855
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18221856
<release.tests.args>-Dmaven.test.skip=false</release.tests.args>
1857+
<release.preparationGoals>clean install</release.preparationGoals>
18231858
<skip.tests>false</skip.tests>
18241859
<xdk.absolute.path />
18251860
<surefire.security.argline />

tests/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,21 @@
100100
</plugin>
101101
</plugins>
102102
</build>
103+
104+
<profiles>
105+
<profile>
106+
<id>release</id>
107+
<build>
108+
<plugins>
109+
<plugin>
110+
<groupId>org.sonatype.plugins</groupId>
111+
<artifactId>nexus-staging-maven-plugin</artifactId>
112+
<configuration>
113+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
114+
</configuration>
115+
</plugin>
116+
</plugins>
117+
</build>
118+
</profile>
119+
</profiles>
103120
</project>

0 commit comments

Comments
 (0)