GitHub user Tibor17 opened a pull request:
https://github.com/apache/maven-surefire/pull/57
[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.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.11</version>
<executions>
<execution>
<id>signature-check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Tibor17/maven-surefire s2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-surefire/pull/57.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #57
----
commit 5c793434a61d957f304d2af481701ab00cc3e6e3
Author: tibordigana <[email protected]>
Date: 2014-10-11T22:05:02Z
[SUREFIRE-1105] Surefire build should check Java 1.5 API signatures with
JDK version > 5
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]