Use maven-enforcer-plugin instead of prerequisites to check the maven version (prerequisites should only be used by maven plugins).
</repository>
</distributionManagement>
- <prerequisites>
- <maven>3.5.0</maven>
- </prerequisites>
-
<dependencyManagement>
<dependencies>
<dependency>
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.0.0-M2</version>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>[3.5.0,)</version>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!-- This plugin is retired and should be removed. M2e handles eclipse now entirely -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
