Repository: incubator-ranger
Updated Branches:
  refs/heads/ranger-0.6 c202a20c1 -> 11e8d07b7


RANGER-1103: added maven version enforcer and moved the plugin to be run as 
part of maven compile


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/11e8d07b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/11e8d07b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/11e8d07b

Branch: refs/heads/ranger-0.6
Commit: 11e8d07b7a2ec780d59264e52272a42879d0e77d
Parents: c202a20
Author: sneethiraj <sneet...@apache.org>
Authored: Mon Aug 8 02:28:44 2016 -0400
Committer: sneethiraj <sneet...@apache.org>
Committed: Mon Aug 8 02:28:44 2016 -0400

----------------------------------------------------------------------
 pom.xml | 48 +++++++++++++++++++++++++-----------------------
 1 file changed, 25 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/11e8d07b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 29b5243..d831549 100644
--- a/pom.xml
+++ b/pom.xml
@@ -112,6 +112,8 @@
         <module>plugin-atlas</module>
   </modules>
     <properties>
+        <maven.version.required>3.3.3</maven.version.required>
+        <java.version.required>1.7</java.version.required>
         <javac.source.version>1.7</javac.source.version>
         <javac.target.version>1.7</javac.target.version>
         <distMgmtStagingId>apache.staging.https</distMgmtStagingId>
@@ -360,29 +362,6 @@
         <pluginManagement>
             <plugins>
                 <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>3.0.4</version>
-                                    </requireMavenVersion>
-                                    <requireJavaVersion>
-                                        <version>${java.version}</version>
-                                    </requireJavaVersion>
-                                </rules>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </plugin>
-                <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>1.9.1</version>
@@ -504,6 +483,29 @@
         <plugins>
             <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>${maven.version.required}</version>
+                                </requireMavenVersion>
+                                <requireJavaVersion>
+                                    <version>${java.version.required}</version>
+                                </requireJavaVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-pmd-plugin</artifactId>
                 <version>3.5</version>
                 <executions>

Reply via email to