switch to JDK 6 was done for 3.2 see the reference http://maven.apache.org/docs/history.html
and even if Maven requires JDK 6, you can use toolchains or animal sniffer to compile for Java 5: - toolchains'logic is to compile with JDK 5, even if Maven uses a JDK 6, - animal sniffers' logic is to compile with the JDK that runs Maven with - target 1.5 then to check/sniff that only JDK 5 API is used Regards, Hervé Le jeudi 8 janvier 2015 12:09:02 Andreas Lehmkühler a écrit : > Hi, > > > sebb <seb...@gmail.com> hat am 8. Januar 2015 um 11:05 geschrieben: > > > > > > I have been trying to test Commons Math build on Jenkins. > > > > It runs fine if I choose Java 1.6 latest, however Math currently targets > > 1.5. > > > > If I try building using Java 1.5, Jenkins complains about class file > > incompatibility. > > > > So it looks like Jenkins needs a minimum of Java 1.6. > > Is that correct? > > I guess the issue is maven, newer versions (> 3.0.3 I'm not sure about the > excact version) somehow need a minimum of Java 1.6. > > > BR > Andreas Lehmkühler