apache/maven-surefire — pull request #57 by Tibor17 (2014-10-11 22:15:36+00:00)
Title: [SUREFIRE-1105] Surefire build should check Java 1.5 API signatures with JDK version > 5

The Maven Surefire project should use animal-sniffer-maven-plugin to check Java 1.5 API signatures.
It has advantages where JDK 8 speeds up the build, however the Java classes are properly compiled to *.class 1.5.

It is going to fix the Jenkins build with currently minimal JDK version 1.5:
[Maven Surefire] $ /opt/jdk/jdk1.5.0_22/bin/java -Xmx1196m -XX:MaxPermSize=512m
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

I have extended pluginManagement and plugins section in parent POM.

org.codehaus.mojo
animal-sniffer-maven-plugin
1.11

signature-check

check

org.codehaus.mojo.signature
java15
1.0