OPENJPA-1356 Use maven-enforcer-plugin to verify proper Java and Maven levels

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2009-10-22 19:51:29 +00:00
parent 4f59bec34f
commit 99816013ba
1 changed files with 27 additions and 0 deletions

27
pom.xml
View File

@ -767,6 +767,11 @@
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0-beta-1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
@ -812,6 +817,28 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[2.0.5,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.5,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>