prevent alpha/beta version upgrades

This commit is contained in:
Jeremy Long
2018-01-22 08:07:11 -05:00
parent 7c98f19d73
commit b35f47e9cb
2 changed files with 49 additions and 1 deletions

43
pom.xml
View File

@@ -176,7 +176,6 @@ Copyright (c) 2012 - Jeremy Long
<org.glassfish.javax.json.version>1.0.4</org.glassfish.javax.json.version>
<maven-artifact-transfer.version>0.9.1</maven-artifact-transfer.version>
<surefireArgLine/>
</properties>
<distributionManagement>
@@ -315,6 +314,47 @@ Copyright (c) 2012 - Jeremy Long
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.6</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.12</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<executions>
<execution>
<id>add-dynamic-properties-pc</id>
<phase>pre-clean</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
<execution>
<id>add-dynamic-properties-init</id>
<phase>initialize</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
<configuration>
<scripts>
<script><![CDATA[
if ("dependency-check-parent".equals("${project.artifactId}")) {
config = "file:///${project.basedir}/src/main/config"
} else {
config = "file:///${project.basedir}/../src/main/config"
}
project.properties['odc.config']= config
]]></script>
</scripts>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
@@ -327,6 +367,7 @@ Copyright (c) 2012 - Jeremy Long
</goals>
<configuration>
<allowSnapshots>false</allowSnapshots>
<rulesUri>${odc.config}/version-rules.xml</rulesUri>
<excludes>
<!-- needed to support maven 3.1.0 -->
<exclude>org.apache.maven:*:*</exclude>

View File

@@ -0,0 +1,7 @@
<ruleset comparisonMethod="maven"
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<ignoreVersions>
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|rc|RC|M|EA)[-_\.]?[0-9]*</ignoreVersion>
</ignoreVersions>
</ruleset>