[jira] [Closed] (MNG-6488) JDK10 maven surefire commonslang3 SystemUtils.isJavaVersionAtLeast NullPointerException
[ https://issues.apache.org/jira/browse/MNG-6488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Heinz Marbaise closed MNG-6488. Resolution: Invalid [~philipp.k...@paratix.ch] Would you please open a different issue with a title like JDK 10 build of maven core fails...So I can take into account what you have found... > JDK10 maven surefire commonslang3 SystemUtils.isJavaVersionAtLeast > NullPointerException > --- > > Key: MNG-6488 > URL: https://issues.apache.org/jira/browse/MNG-6488 > Project: Maven > Issue Type: Bug >Affects Versions: 3.5.4 > Environment: Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.0-8-amd64", arch: "amd64", family: "unix" >Reporter: Philipp Kunz >Assignee: Karl Heinz Marbaise >Priority: Minor > Attachments: MNG-6488.patch > > > {code:title=how to reproduce} > wget > https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz > tar -xzf openjdk-10.0.2_linux-x64_bin.tar.gz > export JAVA_HOME=$(pwd)/jdk-10.0.2 > export PATH=$JAVA_HOME/bin:$PATH > wget > http://www.pirbot.com/mirrors/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz > tar -xzf apache-maven-3.5.4-bin.tar.gz > export MVN_HOME=$(pwd)/apache-maven-3.5.4 > export PATH=$MVN_HOME/bin:$PATH > git clone -b maven-3.5.4 https://gitbox.apache.org/repos/asf/maven.git > cd maven/ > mvn clean verify > {code} > produces > {code:title=failure} > $ mvn --version > Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; > 2018-06-17T20:33:14+02:00) > Maven home: .../apache-maven-3.5.4 > Java version: 10.0.2, vendor: Oracle Corporation, runtime: .../jdk-10.0.2 > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.0-8-amd64", arch: "amd64", family: "unix" > $ mvn clean verify > ... > [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ > maven-model --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 37 source files to .../maven/maven-model/target/test-classes > [INFO] > [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ maven-model --- > [INFO] > > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Maven 3.5.4 . SUCCESS [ 2.853 > s] > [INFO] Maven Model FAILURE [ 2.625 > s] > [INFO] Maven Artifact . SKIPPED > [INFO] Maven Plugin API ... SKIPPED > [INFO] Maven Builder Support .. SKIPPED > [INFO] Maven Model Builder SKIPPED > [INFO] Maven Settings . SKIPPED > [INFO] Maven Settings Builder . SKIPPED > [INFO] Maven Repository Metadata Model SKIPPED > [INFO] Maven Artifact Resolver Provider ... SKIPPED > [INFO] Maven Core . SKIPPED > [INFO] Maven SLF4J Simple Provider SKIPPED > [INFO] Maven Embedder . SKIPPED > [INFO] Maven Compat ... SKIPPED > [INFO] Apache Maven Distribution 3.5.4 SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 5.749 s > [INFO] Finished at: 2018-10-06T15:51:51+02:00 > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on > project maven-model: Execution default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: > NullPointerException -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn -rf :maven-model > {code} > and with more details > {code:title=mvn -X clean verify} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on > project maven-model: Execution default-test
[jira] [Closed] (MNG-6488) JDK10 maven surefire commonslang3 SystemUtils.isJavaVersionAtLeast NullPointerException
[ https://issues.apache.org/jira/browse/MNG-6488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Heinz Marbaise closed MNG-6488. Resolution: Duplicate > JDK10 maven surefire commonslang3 SystemUtils.isJavaVersionAtLeast > NullPointerException > --- > > Key: MNG-6488 > URL: https://issues.apache.org/jira/browse/MNG-6488 > Project: Maven > Issue Type: Bug >Affects Versions: 3.5.4 > Environment: Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.0-8-amd64", arch: "amd64", family: "unix" >Reporter: Philipp Kunz >Priority: Minor > > {code:title=how to reproduce} > wget > https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz > tar -xzf openjdk-10.0.2_linux-x64_bin.tar.gz > export JAVA_HOME=$(pwd)/jdk-10.0.2 > export PATH=$JAVA_HOME/bin:$PATH > wget > http://www.pirbot.com/mirrors/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz > tar -xzf apache-maven-3.5.4-bin.tar.gz > export MVN_HOME=$(pwd)/apache-maven-3.5.4 > export PATH=$MVN_HOME/bin:$PATH > git clone -b maven-3.5.4 https://gitbox.apache.org/repos/asf/maven.git > cd maven/ > mvn clean verify > {code} > produces > {code:title=failure} > $ mvn --version > Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; > 2018-06-17T20:33:14+02:00) > Maven home: .../apache-maven-3.5.4 > Java version: 10.0.2, vendor: Oracle Corporation, runtime: .../jdk-10.0.2 > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.0-8-amd64", arch: "amd64", family: "unix" > $ mvn clean verify > ... > [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ > maven-model --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 37 source files to .../maven/maven-model/target/test-classes > [INFO] > [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ maven-model --- > [INFO] > > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Maven 3.5.4 . SUCCESS [ 2.853 > s] > [INFO] Maven Model FAILURE [ 2.625 > s] > [INFO] Maven Artifact . SKIPPED > [INFO] Maven Plugin API ... SKIPPED > [INFO] Maven Builder Support .. SKIPPED > [INFO] Maven Model Builder SKIPPED > [INFO] Maven Settings . SKIPPED > [INFO] Maven Settings Builder . SKIPPED > [INFO] Maven Repository Metadata Model SKIPPED > [INFO] Maven Artifact Resolver Provider ... SKIPPED > [INFO] Maven Core . SKIPPED > [INFO] Maven SLF4J Simple Provider SKIPPED > [INFO] Maven Embedder . SKIPPED > [INFO] Maven Compat ... SKIPPED > [INFO] Apache Maven Distribution 3.5.4 SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 5.749 s > [INFO] Finished at: 2018-10-06T15:51:51+02:00 > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on > project maven-model: Execution default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: > NullPointerException -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn -rf :maven-model > {code} > and with more details > {code:title=mvn -X clean verify} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on > project maven-model: Execution default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: > NullPointerException -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal