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:
Francesco Guardiani 2020-05-19 20:22:28 +02:00 committed by GitHub
parent fb10bd3da5
commit c616a71947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 47 deletions

View File

@ -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 \

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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
View File

@ -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>