metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [35/44] metron git commit: METRON-811 Enforce Maven Version in Top Level POM (zezutom via ottobackwards) closes apache/metron#558
Date Thu, 01 Jun 2017 21:41:54 GMT
METRON-811 Enforce Maven Version in Top Level POM (zezutom via ottobackwards) closes apache/metron#558


Project: http://git-wip-us.apache.org/repos/asf/metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/7ef929ae
Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/7ef929ae
Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/7ef929ae

Branch: refs/heads/Metron_0.4.0
Commit: 7ef929ae4b998468beb3ef08fe57e37ff04fad4e
Parents: e219731
Author: zezutom <zezulatomas@gmail.com>
Authored: Wed May 24 06:11:16 2017 -0400
Committer: otto <otto@apache.org>
Committed: Wed May 24 06:11:16 2017 -0400

----------------------------------------------------------------------
 pom.xml | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metron/blob/7ef929ae/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 4bbd8ae..16b2499 100644
--- a/pom.xml
+++ b/pom.xml
@@ -107,6 +107,7 @@
         <global_errorprone_core_version>2.0.14</global_errorprone_core_version>
         <global_jar_version>3.0.2</global_jar_version>
         <global_surefire_version>2.18</global_surefire_version>
+        <global_maven_version>[3.3.1,)</global_maven_version>
     </properties>
 
     <profiles>
@@ -275,7 +276,7 @@
                     </execution>
                 </executions>
                 <configuration>
-                  <excludes>
+                    <excludes>
                         <exclude>dependencies_with_url.csv</exclude>
                         <!-- In travis we need to pull down maven 3.3.9, so we should
exclude it here as it is not our code. -->
                         <exclude>apache-maven-3.3.9/**</exclude>
@@ -309,7 +310,7 @@
                         <exclude>**/hbase/data/**</exclude>
                         <exclude>**/kafkazk/data/**</exclude>
                         <exclude>**/wait-for-it.sh</exclude>
-			                  <exclude>**/*.out</exclude>
+                        <exclude>**/*.out</exclude>
                         <!-- Directory containing dependencies downloaded by NPM -->
                         <exclude>node_modules/**</exclude>
                         <!-- Nodejs installed locally by the frontend-maven-plugin -->
@@ -326,6 +327,29 @@
                     </excludes>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>1.4.1</version>
+                <executions>
+                    <execution>
+                        <id>enforce-versions</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireMavenVersion>
+                                    <version>${global_maven_version}</version>
+                                </requireMavenVersion>
+                                <requireJavaVersion>
+                                    <version>${global_java_version}</version>
+                                </requireJavaVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 


Mime
View raw message