Add enforce-rule to ensure maven version >= 3.5.0

Closes gh-13271
This commit is contained in:
hengyunabc 2018-05-26 18:22:01 +08:00 committed by Stephane Nicoll
parent dba73d76b8
commit b75e58b70f
2 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,7 @@ https://github.com/takari/maven-wrapper[maven wrapper]. You also need JDK 1.8.
----
If you want to build with the regular `mvn` command, you will need
https://maven.apache.org/run-maven/index.html[Maven v3.2.1 or above].
https://maven.apache.org/run-maven/index.html[Maven v3.5.0 or above].
NOTE: You may need to increase the amount of memory available to Maven by setting
a `MAVEN_OPTS` environment variable with the value `-Xmx512m`. Remember

View File

@ -633,6 +633,9 @@
<requireJavaVersion>
<version>[1.8,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.5.0,)</version>
</requireMavenVersion>
<requireProperty>
<property>main.basedir</property>
</requireProperty>