Fail if snapshot or release versions are not match.

This commit is contained in:
Manuele Simi 2019-10-02 21:13:34 -04:00
parent 9fb74aeb83
commit 91f067cd3c
1 changed files with 2 additions and 18 deletions

20
pom.xml
View File

@ -363,19 +363,11 @@
<value>${project.version}</value> <value>${project.version}</value>
<regex>.*-SNAPSHOT$</regex> <regex>.*-SNAPSHOT$</regex>
<replacement>true</replacement> <replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch> <failIfNoMatch>true</failIfNoMatch>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </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> </plugins>
<finalName>${project.artifactId}-${project.version}-${gcube.release.number}-${buildNumber}</finalName> <finalName>${project.artifactId}-${project.version}-${gcube.release.number}-${buildNumber}</finalName>
</build> </build>
@ -477,19 +469,11 @@
<value>${project.version}</value> <value>${project.version}</value>
<regex>.*-SNAPSHOT$</regex> <regex>.*-SNAPSHOT$</regex>
<replacement>true</replacement> <replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch> <failIfNoMatch>true</failIfNoMatch>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </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> </plugins>
<finalName>${project.artifactId}-${project.version}-${gcube.release.number}-${buildNumber}</finalName> <finalName>${project.artifactId}-${project.version}-${gcube.release.number}-${buildNumber}</finalName>
</build> </build>