Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1105

Surefire build should check Java 1.5 API signatures with JDK version > 5

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17
    • Fix Version/s: 2.18
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              tibordigana Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: