federkasten / appbundle-maven-plugin

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata
Apache License 2.0
180 stars 56 forks source link

fix compatibility issue with Java 11 #62

Closed dfa1 closed 2 years ago

dfa1 commented 5 years ago

I got the following exception when running version 1.2.0 using OpenJDK 11.0.2 on MacOS 10.14:

Caused by: java.lang.NumberFormatException: multiple points
    at jdk.internal.math.FloatingDecimal.readJavaFormatString (FloatingDecimal.java:1914)
    at jdk.internal.math.FloatingDecimal.parseFloat (FloatingDecimal.java:122)
    at java.lang.Float.parseFloat (Float.java:455)
    at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat (SystemUtils.java:1117)
    at org.apache.commons.lang.SystemUtils.<clinit> (SystemUtils.java:817)
    at sh.tak.appbundler.CreateApplicationBundleMojo.execute (CreateApplicationBundleMojo.java:390)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

Looks like this error has been fixed in commons-lang 3.x.