Fixed the maven deployment config to avoid integration test packages deploy (#154)
* Fixed the maven deploy Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * More maven magic Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
This commit is contained in:
parent
fb10bd3da5
commit
c616a71947
|
|
@ -8,7 +8,7 @@ gpg2 --batch --allow-secret-key-import --import .travis.secring
|
|||
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
mvn clean deploy -P release -DskipTests \
|
||||
mvn clean deploy -Drelease -DskipTests \
|
||||
--settings .travis.settings.xml \
|
||||
-Dgpg.executable=gpg2 \
|
||||
-Dgpg.keyname=4F144A60ECA44F0D \
|
||||
|
|
|
|||
|
|
@ -38,17 +38,4 @@
|
|||
<module>restful-ws-resteasy</module>
|
||||
</modules>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- This is just a test package, there is no need to publish it -->
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -66,14 +66,6 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven-surefire-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- This is just a test package, there is no need to publish it -->
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
|
|||
|
|
@ -72,14 +72,6 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven-surefire-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- This is just a test package, there is no need to publish it -->
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -67,14 +67,6 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven-surefire-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- This is just a test package, there is no need to publish it -->
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -85,14 +85,6 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven-surefire-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- This is just a test package, there is no need to publish it -->
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
|
|||
16
pom.xml
16
pom.xml
|
|
@ -67,7 +67,6 @@
|
|||
<module>formats/json-jackson</module>
|
||||
<module>http/vertx</module>
|
||||
<module>http/restful-ws</module>
|
||||
<module>http/restful-ws-integration-tests</module>
|
||||
<module>kafka</module>
|
||||
</modules>
|
||||
|
||||
|
|
@ -98,6 +97,21 @@
|
|||
</distributionManagement>
|
||||
|
||||
<profiles>
|
||||
<!-- Enable integration tests only when not deploying
|
||||
~ https://stackoverflow.com/questions/25305850/how-to-disable-nexus-staging-maven-plugin-in-sub-modules
|
||||
-->
|
||||
<profile>
|
||||
<id>no-deploy</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>!release</name>
|
||||
</property>
|
||||
</activation>
|
||||
<modules>
|
||||
<module>http/restful-ws-integration-tests</module>
|
||||
</modules>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<activation>
|
||||
|
|
|
|||
Loading…
Reference in New Issue