Tibor Digana created SUREFIRE-1105:
--------------------------------------

             Summary: Surefire build should check Java 1.5 API signatures with 
JDK version > 5
                 Key: SUREFIRE-1105
                 URL: https://jira.codehaus.org/browse/SUREFIRE-1105
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Maven Surefire Plugin
    Affects Versions: 2.17
            Reporter: Tibor Digana
            Priority: Minor


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

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>animal-sniffer-maven-plugin</artifactId>
                <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>



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to