Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-M1
-
None
-
None
Description
Trying to compile the actual 3.0.0-SNAPSHOT version under Java 10 doesn't work:
$ mvn package (...) [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ maven-release-manager --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 68 source files to /Users/thorsten/git/maven-release/maven-release-manager/target/test-classes [INFO] /Users/thorsten/git/maven-release/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java: Some input files use or override a deprecated API. [INFO] /Users/thorsten/git/maven-release/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/thorsten/git/maven-release/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom/JDomPropertiesTest.java:[108,35] reference to storeToXML is ambiguous both method storeToXML(java.io.OutputStream,java.lang.String,java.nio.charset.Charset) in java.util.Properties and method storeToXML(java.io.OutputStream,java.lang.String,java.lang.String) in org.apache.maven.shared.release.transform.jdom.JDomProperties match [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Maven Release 3.0.0-SNAPSHOT ....................... SUCCESS [ 2.205 s] [INFO] Maven Release APIs ................................. SUCCESS [ 2.418 s] [INFO] Maven Release Manager .............................. FAILURE [ 7.689 s] [INFO] Maven Release Plugin ............................... SKIPPED [INFO] Maven Release Odd-Even Policy ...................... SKIPPED [INFO] Maven Release SemVer Policy 3.0.0-SNAPSHOT ......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.593 s [INFO] Finished at: 2018-06-28T13:22:39+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:testCompile (default-testCompile) on project maven-release-manager: Compilation failure [ERROR] /Users/thorsten/git/maven-release/maven-release-manager/src/test/java/org/apache/maven/shared/release/transform/jdom/JDomPropertiesTest.java:[108,35] reference to storeToXML is ambiguous [ERROR] both method storeToXML(java.io.OutputStream,java.lang.String,java.nio.charset.Charset) in java.util.Properties and method storeToXML(java.io.OutputStream,java.lang.String,java.lang.String) in org.apache.maven.shared.release.transform.jdom.JDomProperties match [ERROR] [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :maven-release-manager
When this ambigous reference is cleaned up, a NullPointerException occurs when executing the tests:
$ mvn -X package (...) [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ maven-release-manager --- [DEBUG] Configuring mojo org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:2.20.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test' with basic configurator --> [DEBUG] (s) additionalClasspathElements = [] [DEBUG] (s) argLine = -Xmx256m [DEBUG] (s) basedir = /Users/thorsten/git/theit-maven-release/maven-release-manager [DEBUG] (s) childDelegation = false [DEBUG] (s) classesDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager/target/classes [DEBUG] (s) classpathDependencyExcludes = [] [DEBUG] (s) dependenciesToScan = [] [DEBUG] (s) disableXmlReport = false [DEBUG] (s) enableAssertions = true [DEBUG] (f) forkCount = 1 [DEBUG] (s) forkMode = once [DEBUG] (s) forkedProcessExitTimeoutInSeconds = 30 [DEBUG] (s) junitArtifactName = junit:junit [DEBUG] (s) localRepository = id: local url: file:///Users/thorsten/.m2/repository/ layout: default snapshots: [enabled => true, update => always] releases: [enabled => true, update => always] [DEBUG] (f) parallelMavenExecution = false [DEBUG] (s) parallelOptimized = true [DEBUG] (s) perCoreThreadCount = true [DEBUG] (s) pluginArtifactMap = {org.apache.maven.plugins:maven-surefire-plugin=org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.20.1:, org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:2.20.1:compile, org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.2.1:compile, org.apache.maven.plugin-tools:maven-plugin-annotations=org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.3:compile, org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.20.1:compile, org.apache.maven.surefire:surefire-logger-api=org.apache.maven.surefire:surefire-logger-api:jar:2.20.1:compile, org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.20.1:compile, org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.2.1:compile, org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.5.15:compile, org.apache.maven:maven-plugin-descriptor=org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile, junit:junit=junit:junit:jar:4.12:compile, org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.3:compile, org.apache.maven:maven-project=org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings=org.apache.maven:maven-settings:jar:2.2.1:compile, org.apache.maven:maven-profile=org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager=org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent=backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-plugin-registry=org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.codehaus.plexus:plexus-interpolation=org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.apache.maven:maven-model=org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-core=org.apache.maven:maven-core:jar:2.2.1:compile, org.apache.maven:maven-plugin-parameter-documenter=org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile, org.slf4j:slf4j-jdk14=org.slf4j:slf4j-jdk14:jar:1.5.6:runtime, org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.5.6:runtime, org.slf4j:jcl-over-slf4j=org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime, org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile, org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:2.2.1:compile, org.apache.maven:maven-error-diagnostics=org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile, org.apache.maven:maven-monitor=org.apache.maven:maven-monitor:jar:2.2.1:compile, classworlds:classworlds=classworlds:classworlds:jar:1.1:compile, org.sonatype.plexus:plexus-sec-dispatcher=org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher=org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-toolchain=org.apache.maven:maven-toolchain:jar:2.2.1:compile} [DEBUG] (f) pluginDescriptor = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugin.surefire.HelpMojo', role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:help' role: 'org.apache.maven.plugin.Mojo', implementation: 'org.apache.maven.plugin.surefire.SurefirePlugin', role hint: 'org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test' --- [DEBUG] (s) printSummary = true [DEBUG] (s) projectArtifactMap = {org.apache.maven.release:maven-release-api=org.apache.maven.release:maven-release-api:jar:3.0.0-SNAPSHOT:compile, org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:3.0:compile, org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:3.0.15:compile, org.codehaus.plexus:plexus-interactivity-api=org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:compile, org.codehaus.plexus:plexus-interpolation=org.codehaus.plexus:plexus-interpolation:jar:1.14:compile, org.sonatype.plexus:plexus-sec-dispatcher=org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher=org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-model=org.apache.maven:maven-model:jar:3.0:compile, org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:3.0:compile, org.apache.maven:maven-core=org.apache.maven:maven-core:jar:3.0:compile, org.apache.maven:maven-settings-builder=org.apache.maven:maven-settings-builder:jar:3.0:compile, org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:3.0:compile, org.apache.maven:maven-model-builder=org.apache.maven:maven-model-builder:jar:3.0:compile, org.apache.maven:maven-aether-provider=org.apache.maven:maven-aether-provider:jar:3.0:runtime, org.sonatype.aether:aether-impl=org.sonatype.aether:aether-impl:jar:1.7:compile, org.sonatype.aether:aether-api=org.sonatype.aether:aether-api:jar:1.7:compile, org.sonatype.aether:aether-util=org.sonatype.aether:aether-util:jar:1.7:compile, org.sonatype.sisu:sisu-inject-plexus=org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile, org.sonatype.sisu:sisu-inject-bean=org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile, org.sonatype.sisu:sisu-guice=org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile, org.codehaus.plexus:plexus-classworlds=org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile, org.codehaus.plexus:plexus-component-annotations=org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile, org.apache.maven:maven-settings=org.apache.maven:maven-settings:jar:3.0:compile, org.apache.maven.shared:maven-invoker=org.apache.maven.shared:maven-invoker:jar:2.2:compile, org.apache.commons:commons-lang3=org.apache.commons:commons-lang3:jar:3.7:compile, commons-cli:commons-cli=commons-cli:commons-cli:jar:1.2:compile, commons-io:commons-io=commons-io:commons-io:jar:2.2:compile, org.apache.maven.scm:maven-scm-providers-standard=org.apache.maven.scm:maven-scm-providers-standard:pom:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-accurev=org.apache.maven.scm:maven-scm-provider-accurev:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-bazaar=org.apache.maven.scm:maven-scm-provider-bazaar:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-clearcase=org.apache.maven.scm:maven-scm-provider-clearcase:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-cvsexe=org.apache.maven.scm:maven-scm-provider-cvsexe:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-cvs-commons=org.apache.maven.scm:maven-scm-provider-cvs-commons:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-cvsjava=org.apache.maven.scm:maven-scm-provider-cvsjava:jar:1.9.6-SNAPSHOT:runtime, org.netbeans.lib:cvsclient=org.netbeans.lib:cvsclient:jar:20060125:runtime, ch.ethz.ganymed:ganymed-ssh2=ch.ethz.ganymed:ganymed-ssh2:jar:build210:runtime, org.apache.maven.scm:maven-scm-provider-gitexe=org.apache.maven.scm:maven-scm-provider-gitexe:jar:1.9.6-SNAPSHOT:runtime, commons-lang:commons-lang=commons-lang:commons-lang:jar:2.6:runtime, org.apache.maven.scm:maven-scm-provider-git-commons=org.apache.maven.scm:maven-scm-provider-git-commons:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-jgit=org.apache.maven.scm:maven-scm-provider-jgit:jar:1.9.6-SNAPSHOT:runtime, org.eclipse.jgit:org.eclipse.jgit=org.eclipse.jgit:org.eclipse.jgit:jar:3.7.1.201504261725-r:runtime, com.jcraft:jsch=com.jcraft:jsch:jar:0.1.50:runtime, com.googlecode.javaewah:JavaEWAH=com.googlecode.javaewah:JavaEWAH:jar:0.7.9:runtime, org.apache.httpcomponents:httpclient=org.apache.httpcomponents:httpclient:jar:4.1.3:runtime, org.apache.httpcomponents:httpcore=org.apache.httpcomponents:httpcore:jar:4.1.4:runtime, commons-logging:commons-logging=commons-logging:commons-logging:jar:1.1.1:runtime, org.apache.maven.scm:maven-scm-provider-hg=org.apache.maven.scm:maven-scm-provider-hg:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-perforce=org.apache.maven.scm:maven-scm-provider-perforce:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-starteam=org.apache.maven.scm:maven-scm-provider-starteam:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-svnexe=org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-synergy=org.apache.maven.scm:maven-scm-provider-synergy:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-vss=org.apache.maven.scm:maven-scm-provider-vss:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-tfs=org.apache.maven.scm:maven-scm-provider-tfs:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-provider-integrity=org.apache.maven.scm:maven-scm-provider-integrity:jar:1.9.6-SNAPSHOT:runtime, com.mks.api:mksapi-jar=com.mks.api:mksapi-jar:jar:4.10.9049:runtime, org.codehaus.groovy:groovy-all=org.codehaus.groovy:groovy-all:jar:1.7.6:runtime, org.apache.maven.scm:maven-scm-provider-jazz=org.apache.maven.scm:maven-scm-provider-jazz:jar:1.9.6-SNAPSHOT:runtime, org.apache.maven.scm:maven-scm-manager-plexus=org.apache.maven.scm:maven-scm-manager-plexus:jar:1.8:runtime, org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime, classworlds:classworlds=classworlds:classworlds:jar:1.1-alpha-2:runtime, org.apache.maven.scm:maven-scm-api=org.apache.maven.scm:maven-scm-api:jar:1.9.6-SNAPSHOT:compile, org.apache.maven.scm:maven-scm-provider-svn-commons=org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.9.6-SNAPSHOT:compile, org.apache.maven.shared:maven-artifact-transfer=org.apache.maven.shared:maven-artifact-transfer:jar:0.9.1:compile, org.apache.maven.shared:maven-common-artifact-filters=org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile, org.apache.maven.shared:maven-shared-utils=org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile, commons-codec:commons-codec=commons-codec:commons-codec:jar:1.6:compile, org.slf4j:slf4j-api=org.slf4j:slf4j-api:jar:1.7.5:compile, org.jdom:jdom=org.jdom:jdom:jar:1.1:compile, junit:junit=junit:junit:jar:4.12:test, org.hamcrest:hamcrest-core=org.hamcrest:hamcrest-core:jar:1.3:test, org.apache.maven:maven-compat=org.apache.maven:maven-compat:jar:3.0:test, org.apache.maven.wagon:wagon-provider-api=org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:test, org.apache.maven.scm:maven-scm-test=org.apache.maven.scm:maven-scm-test:jar:1.9.6-SNAPSHOT:test, org.mockito:mockito-core=org.mockito:mockito-core:jar:1.9.5:test, org.objenesis:objenesis=org.objenesis:objenesis:jar:1.0:test, org.xmlunit:xmlunit-core=org.xmlunit:xmlunit-core:jar:2.5.1:test, org.sonatype.aether:aether-connector-file=org.sonatype.aether:aether-connector-file:jar:1.7:test, org.sonatype.aether:aether-spi=org.sonatype.aether:aether-spi:jar:1.7:compile, org.sonatype.aether:aether-connector-wagon=org.sonatype.aether:aether-connector-wagon:jar:1.7:test} [DEBUG] (s) projectBuildDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager/target [DEBUG] (s) redirectTestOutputToFile = false [DEBUG] (s) remoteRepositories = [ id: central url: https://repo.maven.apache.org/maven2 layout: default snapshots: [enabled => false, update => daily] releases: [enabled => true, update => never] ] [DEBUG] (s) reportFormat = brief [DEBUG] (s) reportsDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager/target/surefire-reports [DEBUG] (f) rerunFailingTestsCount = 0 [DEBUG] (f) reuseForks = true [DEBUG] (s) runOrder = filesystem [DEBUG] (f) shutdown = testset [DEBUG] (s) skip = false [DEBUG] (f) skipAfterFailureCount = 0 [DEBUG] (s) skipTests = false [DEBUG] (s) suiteXmlFiles = [] [DEBUG] (s) systemPropertyVariables = {injectedMavenHome=/opt/local/share/java/maven3, settings.security=/Users/thorsten/git/theit-maven-release/maven-release-manager/target/test-classes/settings-security.xml} [DEBUG] (s) tempDir = surefire [DEBUG] (s) testClassesDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager/target/test-classes [DEBUG] (s) testFailureIgnore = false [DEBUG] (s) testNGArtifactName = org.testng:testng [DEBUG] (s) testSourceDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager/src/test/java [DEBUG] (s) threadCountClasses = 0 [DEBUG] (s) threadCountMethods = 0 [DEBUG] (s) threadCountSuites = 0 [DEBUG] (s) trimStackTrace = true [DEBUG] (s) useFile = true [DEBUG] (s) useManifestOnlyJar = true [DEBUG] (s) useSystemClassLoader = true [DEBUG] (s) useUnlimitedThreads = false [DEBUG] (s) workingDirectory = /Users/thorsten/git/theit-maven-release/maven-release-manager [DEBUG] (s) project = MavenProject: org.apache.maven.release:maven-release-manager:3.0.0-SNAPSHOT @ /Users/thorsten/git/theit-maven-release/maven-release-manager/pom.xml [DEBUG] (s) session = org.apache.maven.execution.MavenSession@3900fa71 [DEBUG] -- end configuration -- [DEBUG] Surefire report directory: /Users/thorsten/git/theit-maven-release/maven-release-manager/target/surefire-reports [DEBUG] Setting system property [basedir]=[/Users/thorsten/git/theit-maven-release/maven-release-manager] [DEBUG] Setting system property [settings.security]=[/Users/thorsten/git/theit-maven-release/maven-release-manager/target/test-classes/settings-security.xml] [DEBUG] Setting system property [injectedMavenHome]=[/opt/local/share/java/maven3] [DEBUG] Setting system property [user.dir]=[/Users/thorsten/git/theit-maven-release/maven-release-manager] [DEBUG] Setting system property [localRepository]=[/Users/thorsten/.m2/repository] [DEBUG] dummy:dummy:jar:1.0 (selected for null) [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.20.1:compile (selected for compile) [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.20.1:compile (selected for compile) [DEBUG] org.apache.maven.surefire:surefire-logger-api:jar:2.20.1:compile (selected for compile) [DEBUG] Adding to surefire booter test classpath: /Users/thorsten/.m2/repository/org/apache/maven/surefire/surefire-booter/2.20.1/surefire-booter-2.20.1.jar Scope: compile [DEBUG] Adding to surefire booter test classpath: /Users/thorsten/.m2/repository/org/apache/maven/surefire/surefire-api/2.20.1/surefire-api-2.20.1.jar Scope: compile [DEBUG] Adding to surefire booter test classpath: /Users/thorsten/.m2/repository/org/apache/maven/surefire/surefire-logger-api/2.20.1/surefire-logger-api-2.20.1.jar Scope: compile [DEBUG] Using JVM: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/bin/java with Java version 10.0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Maven Release 3.0.0-SNAPSHOT ....................... SUCCESS [ 3.868 s] [INFO] Maven Release APIs ................................. SUCCESS [ 2.969 s] [INFO] Maven Release Manager .............................. FAILURE [ 12.999 s] [INFO] Maven Release Plugin ............................... SKIPPED [INFO] Maven Release Odd-Even Policy ...................... SKIPPED [INFO] Maven Release SemVer Policy 3.0.0-SNAPSHOT ......... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.160 s [INFO] Finished at: 2018-06-28T13:39:59+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project maven-release-manager: 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 org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project maven-release-manager: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: java.lang.NullPointerException at org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast (SystemUtils.java:1626) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.getEffectiveJvm (AbstractSurefireMojo.java:2107) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.getForkConfiguration (AbstractSurefireMojo.java:1976) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider (AbstractSurefireMojo.java:1111) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:954) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:832) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) [ERROR] [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 <goals> -rf :maven-release-manager