Author: aheritier
Date: 2010-02-08 11:51:54 -0500 (Mon, 08 Feb 2010)
New Revision: 1734
Modified:
parent/trunk/pom.xml
Log:
EXOJCR-454 : Replace the old plugin from
java.net by the new enforcer rule from mojo
available in central repo
Modified: parent/trunk/pom.xml
===================================================================
--- parent/trunk/pom.xml 2010-02-08 16:17:05 UTC (rev 1733)
+++ parent/trunk/pom.xml 2010-02-08 16:51:54 UTC (rev 1734)
@@ -368,25 +368,36 @@
<doUpdate>false</doUpdate>
</configuration>
</plugin>
- <plugin>
- <groupId>org.jvnet</groupId>
- <artifactId>animal-sniffer</artifactId>
- <executions>
- <execution>
- <id>check-java-compatibility</id>
- <phase>compile</phase>
- <goals>
- <goal>check</goal>
- </goals>
- <configuration>
- <signature>
- <groupId>org.jvnet.animal-sniffer</groupId>
- <artifactId>java1.5</artifactId>
- <version>1.0</version>
- </signature>
- </configuration>
- </execution>
- </executions>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.mojo</groupId>
+
<artifactId>animal-sniffer-enforcer-rule</artifactId>
+ <version>1.5</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>check-java15</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <checkSignatureRule
implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
+ <signature>
+ <groupId>org.codehaus.mojo.signature</groupId>
+ <artifactId>java15</artifactId>
+ <version>1.0</version>
+ </signature>
+ <ignoreDependencies>true</ignoreDependencies>
+ </checkSignatureRule>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>