Move maven-enforcer-plugin from odlparent to odlparent-lite 41/46641/2
authorMichael Vorburger <vorburger@redhat.com>
Thu, 6 Oct 2016 23:16:14 +0000 (01:16 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 7 Oct 2016 08:25:23 +0000 (08:25 +0000)
That way it's detected earlier, e.g. Maven version mismatch is already
flagged up to end-users on their root parent project (which has
odlparent-lite as parent), and only a little later on the first Java
project (which have odlparent as parent).

Change-Id: I9c285fc45ffc0a82e8375a2b77dc89da19238033
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
odlparent-lite/pom.xml
odlparent/pom.xml

index c7e003cc4fb5982c502eb0eb32568c1f38fc06e4..19dc7055c6c2ceb17e36ecc6becc50d6368d821f 100644 (file)
         </plugin>
       </plugins>
     </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-maven</id>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <version>1.8.0</version>
+                </requireJavaVersion>
+                <requireMavenVersion>
+                  <version>[3.3.9,)</version>
+                </requireMavenVersion>
+              </rules>
+            </configuration>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 
   <profiles>
index c918075c31f8a39bb834e2c4f12dca8dfc3f7e7f..51fbe206b3e52e6b43f0c51aba8fb1ad248feb1c 100644 (file)
     </pluginManagement>
 
     <plugins>
-      <plugin>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>enforce-maven</id>
-            <configuration>
-              <rules>
-                <requireJavaVersion>
-                  <version>1.8.0</version>
-                </requireJavaVersion>
-                <requireMavenVersion>
-                  <version>[3.3.9,)</version>
-                </requireMavenVersion>
-              </rules>
-            </configuration>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <artifactId>maven-dependency-plugin</artifactId>
       </plugin>