Fix build warning about wrong usage of maven prerequisites for non-maven plugin projects

This commit is contained in:
Hugo Hirsch
2017-10-02 09:42:10 +02:00
parent f5e16ea6ee
commit 52b55434eb

20
pom.xml
View File

@@ -150,9 +150,6 @@ Copyright (c) 2012 - Jeremy Long
<url>https://jeremylong.github.io/DependencyCheck/</url>
</site>
</distributionManagement>
<prerequisites>
<maven>3.1</maven>
</prerequisites>
<build>
<defaultGoal>clean install</defaultGoal>
<pluginManagement>
@@ -191,6 +188,21 @@ Copyright (c) 2012 - Jeremy Long
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-minimal-maven-version</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.1</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -368,7 +380,7 @@ Copyright (c) 2012 - Jeremy Long
</configuration>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>