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

Commit

Permalink
JERSEY-3122: Jersey release improvements
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
stepanv committed Jun 9, 2016
1 parent 69eaf21 commit ee8ec97
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
35 changes: 35 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,40 @@
</site>
</distributionManagement>
</profile>
<profile>
<id>release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>jvnet-nexus-staging</serverId>
<nexusUrl>https://maven.java.net/</nexusUrl>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
39 changes: 37 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<autoVersionSubmodules>true</autoVersionSubmodules>
<preparationGoals>clean install</preparationGoals>
<preparationGoals>${release.preparationGoals}</preparationGoals>
<pushChanges>false</pushChanges>
<useReleaseProfile>false</useReleaseProfile>
<arguments>${release.tests.args} ${release.arguments}</arguments>
Expand Down Expand Up @@ -713,7 +713,7 @@
</property>
</activation>
<properties>
<skip.release.tests>-Dmaven.test.skip=true -Dskip.tests=true</skip.release.tests>
<release.tests.args>-Dskip.tests=true</release.tests.args>
<skip.tests>true</skip.tests>
</properties>
</profile>
Expand Down Expand Up @@ -792,6 +792,20 @@
<activeByDefault>false</activeByDefault>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -804,6 +818,26 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>jvnet-nexus-staging</serverId>
<nexusUrl>https://maven.java.net/</nexusUrl>
</configuration>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -1820,6 +1854,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<release.tests.args>-Dmaven.test.skip=false</release.tests.args>
<release.preparationGoals>clean install</release.preparationGoals>
<skip.tests>false</skip.tests>
<xdk.absolute.path />
<surefire.security.argline />
Expand Down
17 changes: 17 additions & 0 deletions tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,21 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit ee8ec97

Please sign in to comment.