Fail if a snapshot suffix is detected and we are on staging/release.
This commit is contained in:
parent
26e9c51456
commit
60375a9b45
20
pom.xml
20
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue