Browse Source

Enforce supported Maven versions

Our builds are currently not compatible with Maven versions < 3.1.0 and
>= 3.3.0. This commit will enforce Maven 3 versions that our builds are
known to be compatible with. We will consider these our supported Maven
versions.

Closes #13022
Jason Tedor 10 years ago
parent
commit
0a4d6b3a1d
1 changed files with 13 additions and 0 deletions
  1. 13 0
      pom.xml

+ 13 - 0
pom.xml

@@ -542,6 +542,19 @@
                                 </rules>
                             </configuration>
                         </execution>
+                        <execution>
+                            <id>enforce-maven-version</id>
+                            <goals>
+                                <goal>enforce</goal>
+                            </goals>
+                            <configuration>
+                                <rules>
+                                    <requireMavenVersion>
+                                        <version>[3.1.0,3.3.0)</version>
+                                    </requireMavenVersion>
+                                </rules>
+                            </configuration>
+                        </execution>
                         <execution>
                             <id>print-versions</id>
                             <phase>validate</phase>