You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2018/09/21 10:15:19 UTC

empire-db git commit: Maven-enforcer-plugin

Repository: empire-db
Updated Branches:
  refs/heads/master b51167731 -> 5e2636e0e


Maven-enforcer-plugin


Project: http://git-wip-us.apache.org/repos/asf/empire-db/repo
Commit: http://git-wip-us.apache.org/repos/asf/empire-db/commit/5e2636e0
Tree: http://git-wip-us.apache.org/repos/asf/empire-db/tree/5e2636e0
Diff: http://git-wip-us.apache.org/repos/asf/empire-db/diff/5e2636e0

Branch: refs/heads/master
Commit: 5e2636e0e3ce4ce355f84ef7872cc7ef60324475
Parents: b511677
Author: Rainer Döbele <do...@apache.org>
Authored: Fri Sep 21 12:15:14 2018 +0200
Committer: Rainer Döbele <do...@apache.org>
Committed: Fri Sep 21 12:15:14 2018 +0200

----------------------------------------------------------------------
 pom.xml | 52 +++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 41 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/empire-db/blob/5e2636e0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 7125921..776bbf7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,7 +64,7 @@
 			<id>CI</id>
 			<build>
 				<plugins>
-					<!-- check the apache headers -->
+					<!-- maven-enforcer-plugin -->
 					<plugin>
 						<groupId>org.apache.maven.plugins</groupId>
 						<artifactId>maven-enforcer-plugin</artifactId>
@@ -84,6 +84,7 @@
 							</execution>
 						</executions>
 					</plugin>					
+					<!-- check the apache headers -->
 					<plugin>
 						<groupId>com.mycila.maven-license-plugin</groupId>
 						<artifactId>maven-license-plugin</artifactId>
@@ -142,28 +143,36 @@
 			</modules>
 			<build>
 				<plugins>
+					<!-- maven-enforcer-plugin -->
 					<plugin>
-			      		<groupId>org.apache.rat</groupId>
-        				<artifactId>apache-rat-plugin</artifactId>
-        				<inherited>false</inherited>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-enforcer-plugin</artifactId>
 						<executions>
 							<execution>
-								<phase>verify</phase>
+								<id>enforce-maven</id>
 								<goals>
-									<goal>check</goal>
+									<goal>enforce</goal>
 								</goals>
+								<configuration>
+									<rules>
+										<requireMavenVersion>
+											<version>3.0</version>
+										</requireMavenVersion>
+									</rules>
+								</configuration>
 							</execution>
 						</executions>
 					</plugin>
-					<!-- enable enforcer for java 1.6 -->
+					<!-- RAT-Plugin -->					
 					<plugin>
-						<groupId>org.apache.maven.plugins</groupId>
-						<artifactId>maven-enforcer-plugin</artifactId>
+			      		<groupId>org.apache.rat</groupId>
+        				<artifactId>apache-rat-plugin</artifactId>
+        				<inherited>false</inherited>
 						<executions>
 							<execution>
-								<id>enforce-versions</id>
+								<phase>verify</phase>
 								<goals>
-									<goal>enforce</goal>
+									<goal>check</goal>
 								</goals>
 							</execution>
 						</executions>
@@ -391,6 +400,27 @@
 		<defaultGoal>install</defaultGoal>
 	
 		<plugins>
+			<!-- maven-enforcer-plugin -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-enforcer-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>enforce-maven</id>
+						<goals>
+							<goal>enforce</goal>
+						</goals>
+						<configuration>
+							<rules>
+								<requireMavenVersion>
+									<version>3.0</version>
+								</requireMavenVersion>
+							</rules>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<!-- maven-remote-resources-plugin -->
 		 	<plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-remote-resources-plugin</artifactId>