[WHISKER-12] Cleanup Build Infrastructure
- Add an execution to animal-sniffer so that it actually runs
git-svn-id: https://svn.apache.org/repos/asf/creadur/whisker/trunk@1622932 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 19e7b7c..e6baea2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -285,13 +285,28 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.11</version>
- <configuration>
- <signature>
- <groupId>org.codehaus.mojo.signature</groupId>
- <artifactId>java16</artifactId>
- <version>1.0</version>
- </signature>
- </configuration>
+ <executions>
+ <execution>
+ <!-- This checks the source code of our project -->
+ <id>check-java-compatibility</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <!--
+ Note that we cannot use our ${target.jdk} property here, so we
+ must change the artifactId of the signature manually when we
+ decide to move to a higher version of Java
+ -->
+ <signature>
+ <groupId>org.codehaus.mojo.signature</groupId>
+ <artifactId>java16</artifactId>
+ <version>1.0</version>
+ </signature>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
<extensions>