Skip to content

Commit 00b2ce2

Browse files
committed
enforce maven/java version
1 parent 8b4bd60 commit 00b2ce2

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,35 @@
1919

2020
<build>
2121
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-enforcer-plugin</artifactId>
25+
<version>3.0.0-M3</version>
26+
<executions>
27+
<execution>
28+
<id>enforce-maven</id>
29+
<goals>
30+
<goal>enforce</goal>
31+
</goals>
32+
<configuration>
33+
<rules>
34+
<requireMavenVersion>
35+
<version>3.6.3</version>
36+
</requireMavenVersion>
37+
<requireJavaVersion>
38+
<version>1.8.0</version>
39+
</requireJavaVersion>
40+
</rules>
41+
</configuration>
42+
</execution>
43+
</executions>
44+
</plugin>
2245
<plugin>
2346
<groupId>org.owasp</groupId>
2447
<artifactId>dependency-check-maven</artifactId>
2548
<version>6.0.3</version>
2649
<configuration>
27-
<failBuildOnCVSS>8</failBuildOnCVSS>
50+
<failBuildOnCVSS>0</failBuildOnCVSS>
2851
</configuration>
2952
<executions>
3053
<execution>

0 commit comments

Comments
 (0)