Fail if a snapshot suffix is detected and we are on staging/release.

This commit is contained in:
Manuele Simi 2020-01-25 21:33:38 -05:00
parent 26e9c51456
commit 60375a9b45
1 changed files with 18 additions and 2 deletions

20
pom.xml
View File

@ -331,11 +331,19 @@
<value>${project.version}</value>
<regex>.*-SNAPSHOT$</regex>
<replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch>
<failIfNoMatch>true</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>${skip.when.is.snapshot.used}</skip>
</configuration>
</plugin>
<plugin>
<groupId>io.github.olivierlemasle.maven</groupId>
<artifactId>plaintext-maven-plugin</artifactId>
@ -432,7 +440,7 @@
<value>${project.version}</value>
<regex>.*-SNAPSHOT$</regex>
<replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch>
<failIfNoMatch>true</failIfNoMatch>
</configuration>
</execution>
</executions>
@ -463,6 +471,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<skip>${skip.when.is.snapshot.used}</skip>
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}-${project.version}</finalName>
</build>