DZone
Introducing
If you are using Apache Maven, I suppose you have configured several plugins within your pom file already. As an example, we use the Maven Enforcer Plugin to prevent starting a given build with a Maven version that is less than 3.5.0, which looks like this:
XML
<div class="codeMirror-code–wrapper" data-code="
org.apache.maven.plugins
maven-enforcer-plugin
3.0.0-M3
id-enforce
enforce
3.5.0
” data-lang=”application/xml”>
x
26
1
<project>
2
<build>
3
<plugins>
4
<plugin>
5
<groupId>org.apache.maven.plugins</groupId>
6
<artifactId>maven-enforcer-plugin</artifactId>
7
<version>3.0.0-M3</version>
8
<executions>
9
<execution>
10
<id>id-enforce</id>
11
<goals>
12
<goal>enforce</goal>
13
</goals>
14
<configuration>
15
<rules>
16
<requireMavenVersion>
17
<version>3.5.0</version>
18
</requireMavenVersion>
19
</rules>
20
</configuration>
21
</execution>
22
</executions>
23
</plugin>
24
</plugins>
25
</build>
26
</project>