Michael Blow has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/929

Change subject: Use Maven Enforcer Plugin
......................................................................

Use Maven Enforcer Plugin

1. Ensure correct version of Maven is being used to avoid strange errors
2. Refactor pom hierarchy to enable cross-project settings

Change-Id: I9c0042a3317b41c351c44d998141ea14e72971f5
---
M asterixdb/pom.xml
M hyracks-fullstack/pom.xml
M pom.xml
3 files changed, 91 insertions(+), 57 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/29/929/1

diff --git a/asterixdb/pom.xml b/asterixdb/pom.xml
index 7c5e3e7..7fce2ec 100644
--- a/asterixdb/pom.xml
+++ b/asterixdb/pom.xml
@@ -26,9 +26,8 @@
 
   <parent>
     <groupId>org.apache</groupId>
-    <artifactId>apache</artifactId>
-    <version>16</version>
-    <relativePath/>
+    <artifactId>apache-asterixdb-fullstack</artifactId>
+    <version>0.8.9-SNAPSHOT</version>
   </parent>
 
   <licenses>
@@ -215,31 +214,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>2.17</version>
-        <executions>
-          <execution>
-            <id>verify-style</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <logViolationsToConsole>true</logViolationsToConsole>
-          <checkstyleRules>
-            <module name="Checker">
-              <!-- Checks for whitespace                               -->
-              <!-- See http://checkstyle.sf.net/config_whitespace.html -->
-              <module name="FileTabCharacter"/>
-            </module>
-          </checkstyleRules>
-          
<sourceDirectories>${project.build.sourceDirectory},${project.build.testSourceDirectory}</sourceDirectories>
-        </configuration>
       </plugin>
     </plugins>
     <pluginManagement>
diff --git a/hyracks-fullstack/pom.xml b/hyracks-fullstack/pom.xml
index 8fd0502..d57f6b1 100644
--- a/hyracks-fullstack/pom.xml
+++ b/hyracks-fullstack/pom.xml
@@ -27,9 +27,8 @@
 
   <parent>
     <groupId>org.apache</groupId>
-    <artifactId>apache</artifactId>
-    <version>LATEST</version>
-    <relativePath/>
+    <artifactId>apache-asterixdb-fullstack</artifactId>
+    <version>0.8.9-SNAPSHOT</version>
   </parent>
 
   <licenses>
@@ -280,31 +279,6 @@
             </configuration>
           </execution>
         </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>2.17</version>
-        <executions>
-          <execution>
-            <id>verify-style</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <logViolationsToConsole>true</logViolationsToConsole>
-          <checkstyleRules>
-            <module name="Checker">
-              <!-- Checks for whitespace                               -->
-              <!-- See http://checkstyle.sf.net/config_whitespace.html -->
-              <module name="FileTabCharacter"/>
-            </module>
-          </checkstyleRules>
-          
<sourceDirectories>${project.build.sourceDirectory},${project.build.testSourceDirectory}</sourceDirectories>
-        </configuration>
       </plugin>
     </plugins>
     <pluginManagement>
diff --git a/pom.xml b/pom.xml
index b5676ba..0a10867 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,9 +20,16 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache</groupId>
   <artifactId>apache-asterixdb-fullstack</artifactId>
-  <version>0.8.9</version>
+  <version>0.8.9-SNAPSHOT</version>
   <packaging>pom</packaging>
   <name>hyracks-asterix</name>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>16</version>
+    <relativePath/>
+  </parent>
 
   <licenses>
     <license>
@@ -33,6 +40,85 @@
     </license>
   </licenses>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>2.17</version>
+        <executions>
+          <execution>
+            <id>verify-style</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <logViolationsToConsole>true</logViolationsToConsole>
+          <checkstyleRules>
+            <module name="Checker">
+              <!-- Checks for whitespace                               -->
+              <!-- See http://checkstyle.sf.net/config_whitespace.html -->
+              <module name="FileTabCharacter"/>
+            </module>
+          </checkstyleRules>
+          
<sourceDirectories>${project.build.sourceDirectory},${project.build.testSourceDirectory}</sourceDirectories>
+        </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>3.3.9</version>
+                </requireMavenVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+    <pluginManagement>
+      <plugins>
+        <!--This plugin's configuration is used to store Eclipse m2e settings 
only. It has no influence on the Maven build itself.-->
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.rat</groupId>
+                    <artifactId>apache-rat-plugin</artifactId>
+                    <versionRange>[0.11,)</versionRange>
+                    <goals>
+                      <goal>check</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore></ignore>
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
   <modules>
     <module>hyracks-fullstack</module>
     <module>asterixdb</module>

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/929
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c0042a3317b41c351c44d998141ea14e72971f5
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Blow <michael.b...@couchbase.com>

Reply via email to