mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
prevent alpha/beta version upgrades
This commit is contained in:
43
pom.xml
43
pom.xml
@@ -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>
|
||||
|
||||
7
src/main/config/version-rules.xml
Normal file
7
src/main/config/version-rules.xml
Normal 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>
|
||||
Reference in New Issue
Block a user