]> source.dussan.org Git - archiva.git/commitdiff
add en enforcer rule to check build run with 1.6+
authorOlivier Lamy <olamy@apache.org>
Tue, 7 Aug 2012 15:29:14 +0000 (15:29 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 7 Aug 2012 15:29:14 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/parent@1370316 13f79535-47bb-0310-9956-ffa450edef68

pom.xml

diff --git a/pom.xml b/pom.xml
index 57fb1f5b9ad806066395594a9a29e475b373183f..ea8e458a393176aa35de2ce48ed1f7f2140dffe2 100644 (file)
--- a/pom.xml
+++ b/pom.xml
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-java</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <version>1.6.0</version>
+                </requireJavaVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
     <pluginManagement>
       <plugins>