maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-1105) Surefire build should check Java 1.5 API signatures with JDK version > 5
Date Sun, 12 Oct 2014 08:08:10 GMT

     [ https://jira.codehaus.org/browse/SUREFIRE-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tibor Digana closed SUREFIRE-1105.
----------------------------------

    Resolution: Fixed

Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/5c793434

> 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
>            Assignee: Tibor Digana
>            Priority: Minor
>             Fix For: 2.18
>
>
> 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)

Mime
View raw message