Add release and verify profile properties (#114)

This commit is contained in:
Paul Campbell 2018-10-07 20:07:46 +01:00 committed by GitHub
parent f3a368f89a
commit 4081e96f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 2 deletions

View file

@ -1,6 +1,11 @@
CHANGELOG
=========
5.2.0
-----
* Add release and verify profile properties
5.1.2
-----

32
pom.xml
View file

@ -53,8 +53,36 @@
</developers>
<profiles>
<profile>
<id>verify</id>
<!--
The verify profile is intended to be used only when the verify phase is initiated from Jenkins.
The test phase should have completed successfully as part of a separate mvn invocation.
The following properties disable some of the plugins from executing again during this verify phase.
Performing "mvn -P verify clean verify" will fail. Instead: "mvn clean test && mvn -P verify verify"
-->
<properties>
<maven.main.skip>true</maven.main.skip>
<skipTests>true</skipTests>
<jacoco.skip>true</jacoco.skip>
</properties>
</profile><!-- verify -->
<profile>
<id>release</id>
<!--
The release profile is intended to be used only when the deploy phase is initiated from Jenkins.
The install phase should have completed successfully as part of a separate mvn invocation.
The following properties disable some of the plugins from executing again during this deploy phase.
Performing "mvn -P release clean deploy" will fail. Instead: "mvn clean install && mvn -P release deploy"
-->
<properties>
<maven.main.skip>true</maven.main.skip>
<skipTests>true</skipTests>
<jacoco.skip>true</jacoco.skip>
<skipITs>true</skipITs>
<maven.install.skip>true</maven.install.skip>
</properties>
<build>
<plugins>
<plugin>
@ -148,7 +176,7 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles><!-- release -->
</profile><!-- release -->
</profiles>
</project>