Open ckamann opened 5 years ago
I haven't seen this before. The buildnumber plugin executes git, do you have the git
command line tool installed?
If so, can you try the build again with -X
?
Thanks for the fast reply. I do have git installed and working. Even our university's proxy is configured. Running mvn install -X shows the following:
[INFO] Executing: /bin/sh -c cd '/home/administrator/hapi-fhir-master/hapi-fhir-base' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/administrator/hapi-fhir-master/hapi-fhir-base
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for HAPI-FHIR 4.0.0-SNAPSHOT:
[INFO]
[INFO] HAPI-FHIR .......................................... SUCCESS [ 0.406 s]
[INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [ 0.481 s]
[INFO] HAPI FHIR - Core Library ........................... FAILURE [ 0.378 s]
[INFO] HAPI FHIR Test Utilities ........................... SKIPPED
[INFO] HAPI FHIR - Utilities .............................. SKIPPED
[INFO] HAPI FHIR - Server Framework ....................... SKIPPED
[INFO] HAPI FHIR - Validation Resources (FHIR R4) ......... SKIPPED
[INFO] HAPI FHIR - Client Framework ....................... SKIPPED
[INFO] HAPI FHIR Structures - FHIR R4 ..................... SKIPPED
[INFO] HAPI Tinder Plugin ................................. SKIPPED
[INFO] HAPI FHIR - Validation Resources (DSTU2) ........... SKIPPED
[INFO] HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) ......... SKIPPED
[INFO] HAPI FHIR - Validation Resources DSTU2.1 (2016May) . SKIPPED
[INFO] HAPI FHIR Structures - DSTU2.1 (2016May) ........... SKIPPED
[INFO] HAPI FHIR - Validation Resources (DSTU3) ........... SKIPPED
[INFO] HAPI FHIR Structures - DSTU3 ....................... SKIPPED
[INFO] HAPI FHIR Structures - HL7.org DSTU2 ............... SKIPPED
[INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED
[INFO] HAPI FHIR - Converter .............................. SKIPPED
[INFO] HAPI FHIR - Validation ............................. SKIPPED
[INFO] HAPI FHIR Model .................................... SKIPPED
[INFO] HAPI FHIR Search Parameters ........................ SKIPPED
[INFO] HAPI FHIR Subscription Server ...................... SKIPPED
[INFO] HAPI FHIR JPA Server ............................... SKIPPED
[INFO] hapi-fhir-igpacks .................................. SKIPPED
[INFO] HAPI FHIR JAX-RS Server ............................ SKIPPED
[INFO] HAPI FHIR JAX-RS Server - Example .................. SKIPPED
[INFO] HAPI FHIR JPA Server - ElasticSearch Integration ... SKIPPED
[INFO] HAPI FHIR JPA Server - Migration ................... SKIPPED
[INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED
[INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED
[INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED
[INFO] HAPI FHIR OkHttp Client ............................ SKIPPED
[INFO] HAPI FHIR - Android ................................ SKIPPED
[INFO] HAPI FHIR - Command Line Client - Base Project ..... SKIPPED
[INFO] HAPI FHIR - Command Line Client - Server WAR ....... SKIPPED
[INFO] HAPI FHIR - Command Line Client - API .............. SKIPPED
[INFO] HAPI FHIR - Command Line Client - Application ...... SKIPPED
[INFO] HAPI FHIR - Distribution Archive ................... SKIPPED
[INFO] HAPI FHIR - Examples (for site) .................... SKIPPED
[INFO] hapi-fhir-base-example-embedded-ws ................. SKIPPED
[INFO] hapi-fhir-standalone-overlay-example ............... SKIPPED
[INFO] HAPI FHIR JPA Clinical Decision Support Server - Example SKIPPED
[INFO] HAPI FHIR JPA Server - Example for CHIP ............ SKIPPED
[INFO] HAPI FHIR JPA Server - Example (Postgres) .......... SKIPPED
[INFO] HAPI FHIR - Minimal Dependency Test - Client ....... SKIPPED
[INFO] HAPI FHIR - Minimal Dependency Test - Server ....... SKIPPED
[INFO] hapi-fhir-spring-boot-autoconfigure ................ SKIPPED
[INFO] hapi-fhir-spring-boot-starter ...................... SKIPPED
[INFO] hapi-fhir-spring-boot .............................. SKIPPED
[INFO] hapi-fhir-spring-boot-samples ...................... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-client-apache ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-client-okhttp ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-server-jersey ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-server-jpa ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.294 s
[INFO] Finished at: 2019-06-21T09:32:56Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:566)
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 downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:566)
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 java.util.concurrent.ConcurrentHashMap.putVal (ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.put (ConcurrentHashMap.java:1006)
at java.util.Properties.put (Properties.java:1316)
at org.codehaus.mojo.build.CreateMetadataMojo.execute (CreateMetadataMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:566)
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
Hmm.. Weird.
To be honest, I have no idea. It sounds like a bug with the buildnumber plugin- but i have never seen it and I can't reproduce it.
Unless you are interested in reporting it to that project and asking their opinion on this issue, I'd probably recommend just building with -Dmaven.buildNumber.skip=true
Thanks for the fast reply. I tried the parameter you suggested and the error did not occur anymore. But unfortunately another error popped up:
[INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running ca.uhn.fhir.interceptor.executor.InterceptorServiceTest [INFO] Running ca.uhn.fhir.rest.param.TokenParamTest [INFO] Running ca.uhn.fhir.i18n.HapiLocalizerTest [INFO] Running ca.uhn.fhir.validation.ResultSeverityEnumTest [INFO] Running ca.uhn.fhir.util.DependencyLogUtilTest [INFO] Running ca.uhn.fhir.validation.PlaceholderTest [INFO] Running ca.uhn.fhir.util.LogUtilTest [INFO] Running ca.uhn.fhir.util.UrlUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 s - in ca.uhn.fhir.rest.param.TokenParamTest [INFO] Running ca.uhn.fhir.parser.json.JsonLikeStructureTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.365 s - in ca.uhn.fhir.validation.ResultSeverityEnumTest [INFO] Running ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 s - in ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionTest [INFO] Running ca.uhn.fhir.util.VersionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.305 s - in ca.uhn.fhir.validation.PlaceholderTest [INFO] Running ca.uhn.fhir.rest.param.DateRangeParamTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.466 s - in ca.uhn.fhir.parser.json.JsonLikeStructureTest [INFO] Running ca.uhn.fhir.util.ValidateUtilTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.814 s - in ca.uhn.fhir.i18n.HapiLocalizerTest [INFO] Running ca.uhn.fhir.util.VersionEnumTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 s - in ca.uhn.fhir.util.ValidateUtilTest [INFO] Running ca.uhn.fhir.util.ObjectUtilTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s - in ca.uhn.fhir.util.ObjectUtilTest [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.083 s <<< FAILURE! - in ca.uhn.fhir.util.VersionEnumTest [ERROR] testCurrentVersionExists(ca.uhn.fhir.util.VersionEnumTest) Time elapsed: 0.079 s <<< FAILURE! java.lang.AssertionError:
Expected: a collection containing "V(unknown)" but: mismatches were: [was "V2_5_0", was "V3_0_0", was "V3_1_0", was "V3_2_0", was "V3_3_0", was "V3_4_0", was "V3_5_0", was "V3_6_0", was "V3_7_0", was "V3_8_0", was "V4_0_0"] at ca.uhn.fhir.util.VersionEnumTest.testCurrentVersionExists(VersionEnumTest.java:24)
[INFO] Running ca.uhn.fhir.util.StopWatchTest [INFO] Running ca.uhn.fhir.rest.api.CacheControlDirectiveTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s - in ca.uhn.fhir.rest.api.CacheControlDirectiveTest [INFO] Running ca.uhn.fhir.rest.api.QualifiedParamListTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 s - in ca.uhn.fhir.rest.api.QualifiedParamListTest [INFO] Running ca.uhn.fhir.util.ReflectionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.861 s - in ca.uhn.fhir.util.DependencyLogUtilTest [INFO] Running ca.uhn.fhir.rest.param.StringParamTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s - in ca.uhn.fhir.util.ReflectionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s - in ca.uhn.fhir.rest.param.StringParamTest [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.702 s <<< FAILURE! - in ca.uhn.fhir.util.VersionUtilTest [ERROR] testProperties(ca.uhn.fhir.util.VersionUtilTest) Time elapsed: 0.69 s <<< FAILURE! java.lang.AssertionError:
Expected: not (null or a blank string) but: was null at ca.uhn.fhir.util.VersionUtilTest.testProperties(VersionUtilTest.java:14)
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.936 s - in ca.uhn.fhir.util.UrlUtilTest
[WARNING] Tests run: 17, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.376 s - in ca.uhn.fhir.interceptor.executor.InterceptorServiceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.676 s - in ca.uhn.fhir.util.LogUtilTest
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.188 s - in ca.uhn.fhir.util.StopWatchTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.538 s - in ca.uhn.fhir.rest.param.DateRangeParamTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] VersionEnumTest.testCurrentVersionExists:24
Expected: a collection containing "V(unknown)"
but: mismatches were: [was "V2_5_0", was "V3_0_0", was "V3_1_0", was "V3_2_0", was "V3_3_0", was "V3_4_0", was "V3_5_0", was "V3_6_0", was "V3_7_0", was "V3_8_0", was "V4_0_0"]
[ERROR] VersionUtilTest.testProperties:14
Expected: not (null or a blank string)
but: was null
[INFO]
[ERROR] Tests run: 71, Failures: 2, Errors: 0, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for HAPI-FHIR 4.0.0-SNAPSHOT:
[INFO]
[INFO] HAPI-FHIR .......................................... SUCCESS [ 0.380 s]
[INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [ 0.470 s]
[INFO] HAPI FHIR - Core Library ........................... FAILURE [01:29 min]
[INFO] HAPI FHIR Test Utilities ........................... SKIPPED
[INFO] HAPI FHIR - Utilities .............................. SKIPPED
[INFO] HAPI FHIR - Server Framework ....................... SKIPPED
[INFO] HAPI FHIR - Validation Resources (FHIR R4) ......... SKIPPED
[INFO] HAPI FHIR - Client Framework ....................... SKIPPED
[INFO] HAPI FHIR Structures - FHIR R4 ..................... SKIPPED
[INFO] HAPI Tinder Plugin ................................. SKIPPED
[INFO] HAPI FHIR - Validation Resources (DSTU2) ........... SKIPPED
[INFO] HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) ......... SKIPPED
[INFO] HAPI FHIR - Validation Resources DSTU2.1 (2016May) . SKIPPED
[INFO] HAPI FHIR Structures - DSTU2.1 (2016May) ........... SKIPPED
[INFO] HAPI FHIR - Validation Resources (DSTU3) ........... SKIPPED
[INFO] HAPI FHIR Structures - DSTU3 ....................... SKIPPED
[INFO] HAPI FHIR Structures - HL7.org DSTU2 ............... SKIPPED
[INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED
[INFO] HAPI FHIR - Converter .............................. SKIPPED
[INFO] HAPI FHIR - Validation ............................. SKIPPED
[INFO] HAPI FHIR Model .................................... SKIPPED
[INFO] HAPI FHIR Search Parameters ........................ SKIPPED
[INFO] HAPI FHIR Subscription Server ...................... SKIPPED
[INFO] HAPI FHIR JPA Server ............................... SKIPPED
[INFO] hapi-fhir-igpacks .................................. SKIPPED
[INFO] HAPI FHIR JAX-RS Server ............................ SKIPPED
[INFO] HAPI FHIR JAX-RS Server - Example .................. SKIPPED
[INFO] HAPI FHIR JPA Server - ElasticSearch Integration ... SKIPPED
[INFO] HAPI FHIR JPA Server - Migration ................... SKIPPED
[INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED
[INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED
[INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED
[INFO] HAPI FHIR OkHttp Client ............................ SKIPPED
[INFO] HAPI FHIR - Android ................................ SKIPPED
[INFO] HAPI FHIR - Command Line Client - Base Project ..... SKIPPED
[INFO] HAPI FHIR - Command Line Client - Server WAR ....... SKIPPED
[INFO] HAPI FHIR - Command Line Client - API .............. SKIPPED
[INFO] HAPI FHIR - Command Line Client - Application ...... SKIPPED
[INFO] HAPI FHIR - Distribution Archive ................... SKIPPED
[INFO] HAPI FHIR - Examples (for site) .................... SKIPPED
[INFO] hapi-fhir-base-example-embedded-ws ................. SKIPPED
[INFO] hapi-fhir-standalone-overlay-example ............... SKIPPED
[INFO] HAPI FHIR JPA Clinical Decision Support Server - Example SKIPPED
[INFO] HAPI FHIR JPA Server - Example for CHIP ............ SKIPPED
[INFO] HAPI FHIR JPA Server - Example (Postgres) .......... SKIPPED
[INFO] HAPI FHIR - Minimal Dependency Test - Client ....... SKIPPED
[INFO] HAPI FHIR - Minimal Dependency Test - Server ....... SKIPPED
[INFO] hapi-fhir-spring-boot-autoconfigure ................ SKIPPED
[INFO] hapi-fhir-spring-boot-starter ...................... SKIPPED
[INFO] hapi-fhir-spring-boot .............................. SKIPPED
[INFO] hapi-fhir-spring-boot-samples ...................... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-client-apache ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-client-okhttp ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-server-jersey ......... SKIPPED
[INFO] hapi-fhir-spring-boot-sample-server-jpa ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:30 min
[INFO] Finished at: 2019-06-24T06:43:45Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project hapi-fhir-base: There are test failures.
[ERROR]
[ERROR] Please refer to /home/administrator/hapi-fhir-master/hapi-fhir-base/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[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
The dump files contains the following:
java.io.IOException: Stream closed at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176) at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:289) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351) at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.base/java.io.InputStreamReader.read(InputStreamReader.java:185) at java.base/java.io.Reader.read(Reader.java:189) at java.base/java.util.Scanner.readInput(Scanner.java:882) at java.base/java.util.Scanner.findWithinHorizon(Scanner.java:1796) at java.base/java.util.Scanner.hasNextLine(Scanner.java:1610) at org.apache.maven.surefire.booter.PpidChecker$ProcessInfoConsumer.execute(PpidChecker.java:354) at org.apache.maven.surefire.booter.PpidChecker.unix(PpidChecker.java:190) at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:123) at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
System.exit() or native command error interrupted process checker. java.lang.IllegalStateException: error [STOPPED] to read process 22498 at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:145) at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124) at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
Any ideas?
Unfortunately not. I don't see this failure on either CI server or any of our developer machines...
You'll probably need to debug this, or try on adefferent machine.
sent from my phone.
On Mon, Jun 24, 2019, 02:52 Christian Kamann notifications@github.com wrote:
Thanks for the fast reply. I tried the parameter you suggested and the error did not occur anymore. But unfortunately another error popped up:
[INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running ca.uhn.fhir.interceptor.executor.InterceptorServiceTest [INFO] Running ca.uhn.fhir.rest.param.TokenParamTest [INFO] Running ca.uhn.fhir.i18n.HapiLocalizerTest [INFO] Running ca.uhn.fhir.validation.ResultSeverityEnumTest [INFO] Running ca.uhn.fhir.util.DependencyLogUtilTest [INFO] Running ca.uhn.fhir.validation.PlaceholderTest [INFO] Running ca.uhn.fhir.util.LogUtilTest [INFO] Running ca.uhn.fhir.util.UrlUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 s - in ca.uhn.fhir.rest.param.TokenParamTest [INFO] Running ca.uhn.fhir.parser.json.JsonLikeStructureTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.365 s - in ca.uhn.fhir.validation.ResultSeverityEnumTest [INFO] Running ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 s - in ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionTest [INFO] Running ca.uhn.fhir.util.VersionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.305 s - in ca.uhn.fhir.validation.PlaceholderTest [INFO] Running ca.uhn.fhir.rest.param.DateRangeParamTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.466 s - in ca.uhn.fhir.parser.json.JsonLikeStructureTest [INFO] Running ca.uhn.fhir.util.ValidateUtilTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.814 s - in ca.uhn.fhir.i18n.HapiLocalizerTest [INFO] Running ca.uhn.fhir.util.VersionEnumTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 s - in ca.uhn.fhir.util.ValidateUtilTest [INFO] Running ca.uhn.fhir.util.ObjectUtilTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s - in ca.uhn.fhir.util.ObjectUtilTest [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.083 s <<< FAILURE! - in ca.uhn.fhir.util.VersionEnumTest [ERROR] testCurrentVersionExists(ca.uhn.fhir.util.VersionEnumTest) Time elapsed: 0.079 s <<< FAILURE! java.lang.AssertionError:
Expected: a collection containing "V(unknown)" but: mismatches were: [was "V2_5_0", was "V3_0_0", was "V3_1_0", was "V3_2_0", was "V3_3_0", was "V3_4_0", was "V3_5_0", was "V3_6_0", was "V3_7_0", was "V3_8_0", was "V4_0_0"] at ca.uhn.fhir.util.VersionEnumTest.testCurrentVersionExists(VersionEnumTest.java:24)
[INFO] Running ca.uhn.fhir.util.StopWatchTest [INFO] Running ca.uhn.fhir.rest.api.CacheControlDirectiveTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 s - in ca.uhn.fhir.rest.api.CacheControlDirectiveTest [INFO] Running ca.uhn.fhir.rest.api.QualifiedParamListTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 s - in ca.uhn.fhir.rest.api.QualifiedParamListTest [INFO] Running ca.uhn.fhir.util.ReflectionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.861 s - in ca.uhn.fhir.util.DependencyLogUtilTest [INFO] Running ca.uhn.fhir.rest.param.StringParamTest [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s - in ca.uhn.fhir.util.ReflectionUtilTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 s - in ca.uhn.fhir.rest.param.StringParamTest [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.702 s <<< FAILURE! - in ca.uhn.fhir.util.VersionUtilTest [ERROR] testProperties(ca.uhn.fhir.util.VersionUtilTest) Time elapsed: 0.69 s <<< FAILURE! java.lang.AssertionError:
Expected: not (null or a blank string) but: was null at ca.uhn.fhir.util.VersionUtilTest.testProperties(VersionUtilTest.java:14)
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.936 s - in ca.uhn.fhir.util.UrlUtilTest [WARNING] Tests run: 17, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.376 s - in ca.uhn.fhir.interceptor.executor.InterceptorServiceTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.676 s - in ca.uhn.fhir.util.LogUtilTest [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.188 s - in ca.uhn.fhir.util.StopWatchTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.538 s - in ca.uhn.fhir.rest.param.DateRangeParamTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] VersionEnumTest.testCurrentVersionExists:24 Expected: a collection containing "V(unknown)" but: mismatches were: [was "V2_5_0", was "V3_0_0", was "V3_1_0", was "V3_2_0", was "V3_3_0", was "V3_4_0", was "V3_5_0", was "V3_6_0", was "V3_7_0", was "V3_8_0", was "V4_0_0"] [ERROR] VersionUtilTest.testProperties:14 Expected: not (null or a blank string) but: was null [INFO] [ERROR] Tests run: 71, Failures: 2, Errors: 0, Skipped: 1 [INFO] [INFO]
[INFO] Reactor Summary for HAPI-FHIR 4.0.0-SNAPSHOT: [INFO] [INFO] HAPI-FHIR .......................................... SUCCESS [ 0.380 s] [INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [ 0.470 s] [INFO] HAPI FHIR - Core Library ........................... FAILURE [01:29 min] [INFO] HAPI FHIR Test Utilities ........................... SKIPPED [INFO] HAPI FHIR - Utilities .............................. SKIPPED [INFO] HAPI FHIR - Server Framework ....................... SKIPPED [INFO] HAPI FHIR - Validation Resources (FHIR R4) ......... SKIPPED [INFO] HAPI FHIR - Client Framework ....................... SKIPPED [INFO] HAPI FHIR Structures - FHIR R4 ..................... SKIPPED [INFO] HAPI Tinder Plugin ................................. SKIPPED [INFO] HAPI FHIR - Validation Resources (DSTU2) ........... SKIPPED [INFO] HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) ......... SKIPPED [INFO] HAPI FHIR - Validation Resources DSTU2.1 (2016May) . SKIPPED [INFO] HAPI FHIR Structures - DSTU2.1 (2016May) ........... SKIPPED [INFO] HAPI FHIR - Validation Resources (DSTU3) ........... SKIPPED [INFO] HAPI FHIR Structures - DSTU3 ....................... SKIPPED [INFO] HAPI FHIR Structures - HL7.org DSTU2 ............... SKIPPED [INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED [INFO] HAPI FHIR - Converter .............................. SKIPPED [INFO] HAPI FHIR - Validation ............................. SKIPPED [INFO] HAPI FHIR Model .................................... SKIPPED [INFO] HAPI FHIR Search Parameters ........................ SKIPPED [INFO] HAPI FHIR Subscription Server ...................... SKIPPED [INFO] HAPI FHIR JPA Server ............................... SKIPPED [INFO] hapi-fhir-igpacks .................................. SKIPPED [INFO] HAPI FHIR JAX-RS Server ............................ SKIPPED [INFO] HAPI FHIR JAX-RS Server - Example .................. SKIPPED [INFO] HAPI FHIR JPA Server - ElasticSearch Integration ... SKIPPED [INFO] HAPI FHIR JPA Server - Migration ................... SKIPPED [INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED [INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED [INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED [INFO] HAPI FHIR OkHttp Client ............................ SKIPPED [INFO] HAPI FHIR - Android ................................ SKIPPED [INFO] HAPI FHIR - Command Line Client - Base Project ..... SKIPPED [INFO] HAPI FHIR - Command Line Client - Server WAR ....... SKIPPED [INFO] HAPI FHIR - Command Line Client - API .............. SKIPPED [INFO] HAPI FHIR - Command Line Client - Application ...... SKIPPED [INFO] HAPI FHIR - Distribution Archive ................... SKIPPED [INFO] HAPI FHIR - Examples (for site) .................... SKIPPED [INFO] hapi-fhir-base-example-embedded-ws ................. SKIPPED [INFO] hapi-fhir-standalone-overlay-example ............... SKIPPED [INFO] HAPI FHIR JPA Clinical Decision Support Server - Example SKIPPED [INFO] HAPI FHIR JPA Server - Example for CHIP ............ SKIPPED [INFO] HAPI FHIR JPA Server - Example (Postgres) .......... SKIPPED [INFO] HAPI FHIR - Minimal Dependency Test - Client ....... SKIPPED [INFO] HAPI FHIR - Minimal Dependency Test - Server ....... SKIPPED [INFO] hapi-fhir-spring-boot-autoconfigure ................ SKIPPED [INFO] hapi-fhir-spring-boot-starter ...................... SKIPPED [INFO] hapi-fhir-spring-boot .............................. SKIPPED [INFO] hapi-fhir-spring-boot-samples ...................... SKIPPED [INFO] hapi-fhir-spring-boot-sample-client-apache ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-client-okhttp ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-server-jersey ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-server-jpa ............ SKIPPED [INFO]
[INFO] BUILD FAILURE [INFO]
[INFO] Total time: 01:30 min [INFO] Finished at: 2019-06-24T06:43:45Z [INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project hapi-fhir-base: There are test failures. [ERROR] [ERROR] Please refer to /home/administrator/hapi-fhir-master/hapi-fhir-base/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [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 -rf :hapi-fhir-base
Any ideas?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jamesagnew/hapi-fhir/issues/1356?email_source=notifications&email_token=AA2N7HK6IWKIYCIIOB7MKFLP4BVJ3A5CNFSM4H2NIOBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYL6HJY#issuecomment-504882087, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2N7HP72WP7ZYMXM7SFZMLP4BVJ3ANCNFSM4H2NIOBA .
I am getting the same problems as Issue Failed to build HAPI FHIR #1356 opened Jun 21, 2019 by ckamann. It doesn't look like this issue was resolved for this user.
Like ckamann, I was able to bypass the error [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.: NullPointerException ->
by adding -Dmaven.buildNumber.skip=true
After skipping the codehaus.mojo:buildnumber issue, I got stuck in the same place as ckamann.
My logs from using the -X switch show the same 3 test failures for [INFO] HAPI FHIR - Core Library ........................... FAILURE [01:29 min] as ckamann.
These 3 errors are:
[ERROR] testGetVersion(ca.uhn.fhir.i18n.HapiLocalizerTest) Time elapsed: 0 s <<< FAILURE! java.lang.AssertionError:
Expected: a string matching the pattern '[0-9]+.*' but: was "(unknown)" at ca.uhn.fhir.i18n.HapiLocalizerTest.testGetVersion(HapiLocalizerTest.java:38)
[ERROR] testProperties(ca.uhn.fhir.util.VersionUtilTest) Time elapsed: 0 s <<< FAILURE! java.lang.AssertionError:
Expected: not (null or a blank string) but: was null at ca.uhn.fhir.util.VersionUtilTest.testProperties(VersionUtilTest.java:14)
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.109 s <<< FAILURE! - in ca.uhn.fhir.util.VersionEnumTest [ERROR] testCurrentVersionExists(ca.uhn.fhir.util.VersionEnumTest) Time elapsed: 0.015 s <<< FAILURE! java.lang.AssertionError:
Expected: a collection containing "V(unknown)" but: mismatches were: [was "V2_5_0", was "V3_0_0", was "V3_1_0", was "V3_2_0", was "V3_3_0", was "V3_4_0", was "V3_5_0", was "V3_6_0", was "V3_7_0", was "V3_8_0", was "V4_0_0"] at ca.uhn.fhir.util.VersionEnumTest.testCurrentVersionExists(VersionEnumTest.java:24)
You advised ckamann that he needs to debug.
I don't even know where to start debugging:
ca.uhn.fhir.util.VersionEnumTest ca.uhn.fhir.util.VersionUtilTest ca.uhn.fhir.i18n.HapiLocalizerTest
Can you please help?
Some other notes:
mvn -version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T15:00:29-04:00) Maven home: C:\Program Files\Apache_Maven\bin.. Java version: 11.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.2 Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
@GitHubUNCStudent This is so weird.. I just can't replicate this anywhere, including multiple CI servers and various desktop machines I have access to.
If you run mvn -X install
what does the buildnumber stack trace look like for you? Same as the one above?
I think the next step would probably be to debug the maven build itself, but that is an unpleasant process to say the least.
I'd be open to PRs that work around this by skipping the buildnumber plugin and hardcoding the properties it extracts, as long as this behaviour was configurable and disabled by default.
I was getting exact same sequence of errors but i bypassed the tests and got a successful build by using -Dmaven.test.skip
Same issue when building on Macos
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put (Hashtable.java:460)
at org.codehaus.mojo.build.CreateMetadataMojo.execute (CreateMetadataMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
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:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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
To anyone who is experiencing this issue- I spent some time digging through the source of the buildnumber plugin and I think I get what's going on here. Would it be accurate to guess that you're using a downloaded snapshot of the codebase (as opposed to checking it out with git)? I think the buildnumber has a bug where it doesn't work in that circumstance.
I've committed a potential workaround. Could someone verify that it worked?
@jamesagnew I just clone the master branch from github. Your fix work for hapi-fhir-base now, but when i continue the mvn -X install i see an other error below [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hapi-fhir-converter: Compilation failure [ERROR] error: error reading /Users/hoangton/.m2/repository/ca/uhn/hapi/fhir/org.hl7.fhir.convertors/4.0.26-SNAPSHOT/org.hl7.fhir.convertors-4.0.26-SNAPSHOT.jar; zip file is empty
So i download source code from release 4.0.0: https://github.com/jamesagnew/hapi-fhir/archive/v4.0.0.zip and add
This may be a Maven snapshot repo issue- They have been having some scalability issues lately unfortunately.
Can you look at the following file on your disk: /Users/hoangton/.m2/repository/ca/uhn/hapi/fhir/org.hl7.fhir.convertors/4.0.26-SNAPSHOT/org.hl7.fhir.convertors-4.0.26-SNAPSHOT.jar
If it contains an HTML error page instead of containing an actual ZIP file, you may need to delete it and try again.
On Sun, Nov 3, 2019 at 8:46 AM hoangton notifications@github.com wrote:
@jamesagnew https://github.com/jamesagnew I just clone the master branch from github. Your fix work for hapi-fhir-base now, but when i continue the mvn -X install i see an other error below [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hapi-fhir-converter: Compilation failure [ERROR] error: error reading /Users/hoangton/.m2/repository/ca/uhn/hapi/fhir/org.hl7.fhir.convertors/4.0.26-SNAPSHOT/org.hl7.fhir.convertors-4.0.26-SNAPSHOT.jar; zip file is empty
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jamesagnew/hapi-fhir/issues/1356?email_source=notifications&email_token=AA2N7HNRKRL42FXKDNKIVITQR3I47A5CNFSM4H2NIOBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5S5YY#issuecomment-549138147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2N7HPBN45KV7P653SGK3LQR3I47ANCNFSM4H2NIOBA .
I further researched into this one. The build number plugin generates the build number using the scm information like commit revision. It makes use of the changes in the revision number during commits to differentiate the builds under same snapshots versions like 1.0.0-SNAPSHOT.
The build number shows the commit hash for reference
That's why the build number plugin was failing, when the code was downloaded as snapshot apposed to git clone. But, there seems to be an issue with Eclipse m2e plugin as well, that shows the error while we import the project
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (execution: downstream, phase: validate)
This adds more confusion, than it actually is. I'm sure that this doesn't break the build.
What it does now? The buildnumber plugin executes during the
validate
phase and it creates thebuildnumber.properties
as per the configuration. but, this gets overwritten by the following lifecycle phases because we have set thebuildnumber.properties
in the following location
${project.build.directory}/generated-sources/properties
I think generate-sources
lifecycle overwrites it again! I will send a PR. so, the build number properties is generated and stored in a different folder like target/generated/build-metadata
i keep facing the same issue. how did you fix this?
I tried to build the repo via maven but always run in the following error:
[INFO] Reactor Summary for HAPI-FHIR 4.0.0-SNAPSHOT: [INFO] [INFO] HAPI-FHIR .......................................... SUCCESS [ 0.376 s] [INFO] HAPI FHIR - Deployable Artifact Parent POM ......... SUCCESS [ 0.535 s] [INFO] HAPI FHIR - Core Library ........................... FAILURE [ 9.102 s] [INFO] HAPI FHIR Test Utilities ........................... SKIPPED [INFO] HAPI FHIR - Utilities .............................. SKIPPED [INFO] HAPI FHIR - Server Framework ....................... SKIPPED [INFO] HAPI FHIR - Validation Resources (FHIR R4) ......... SKIPPED [INFO] HAPI FHIR - Client Framework ....................... SKIPPED [INFO] HAPI FHIR Structures - FHIR R4 ..................... SKIPPED [INFO] HAPI Tinder Plugin ................................. SKIPPED [INFO] HAPI FHIR - Validation Resources (DSTU2) ........... SKIPPED [INFO] HAPI FHIR Structures - DSTU2 (FHIR v1.0.0) ......... SKIPPED [INFO] HAPI FHIR - Validation Resources DSTU2.1 (2016May) . SKIPPED [INFO] HAPI FHIR Structures - DSTU2.1 (2016May) ........... SKIPPED [INFO] HAPI FHIR - Validation Resources (DSTU3) ........... SKIPPED [INFO] HAPI FHIR Structures - DSTU3 ....................... SKIPPED [INFO] HAPI FHIR Structures - HL7.org DSTU2 ............... SKIPPED [INFO] HAPI Tinder Plugin - Test Project .................. SKIPPED [INFO] HAPI FHIR - Converter .............................. SKIPPED [INFO] HAPI FHIR - Validation ............................. SKIPPED [INFO] HAPI FHIR Model .................................... SKIPPED [INFO] HAPI FHIR Search Parameters ........................ SKIPPED [INFO] HAPI FHIR Subscription Server ...................... SKIPPED [INFO] HAPI FHIR JPA Server ............................... SKIPPED [INFO] hapi-fhir-igpacks .................................. SKIPPED [INFO] HAPI FHIR JAX-RS Server ............................ SKIPPED [INFO] HAPI FHIR JAX-RS Server - Example .................. SKIPPED [INFO] HAPI FHIR JPA Server - ElasticSearch Integration ... SKIPPED [INFO] HAPI FHIR JPA Server - Migration ................... SKIPPED [INFO] HAPI FHIR TestPage Overlay ......................... SKIPPED [INFO] HAPI FHIR Sample RESTful Server .................... SKIPPED [INFO] HAPI FHIR - fhirtest.uhn.ca Deployable WAR ......... SKIPPED [INFO] HAPI FHIR OkHttp Client ............................ SKIPPED [INFO] HAPI FHIR - Android ................................ SKIPPED [INFO] HAPI FHIR - Command Line Client - Base Project ..... SKIPPED [INFO] HAPI FHIR - Command Line Client - Server WAR ....... SKIPPED [INFO] HAPI FHIR - Command Line Client - API .............. SKIPPED [INFO] HAPI FHIR - Command Line Client - Application ...... SKIPPED [INFO] HAPI FHIR - Distribution Archive ................... SKIPPED [INFO] HAPI FHIR - Examples (for site) .................... SKIPPED [INFO] hapi-fhir-base-example-embedded-ws ................. SKIPPED [INFO] hapi-fhir-standalone-overlay-example ............... SKIPPED [INFO] HAPI FHIR JPA Clinical Decision Support Server - Example SKIPPED [INFO] HAPI FHIR JPA Server - Example for CHIP ............ SKIPPED [INFO] HAPI FHIR JPA Server - Example (Postgres) .......... SKIPPED [INFO] HAPI FHIR - Minimal Dependency Test - Client ....... SKIPPED [INFO] HAPI FHIR - Minimal Dependency Test - Server ....... SKIPPED [INFO] hapi-fhir-spring-boot-autoconfigure ................ SKIPPED [INFO] hapi-fhir-spring-boot-starter ...................... SKIPPED [INFO] hapi-fhir-spring-boot .............................. SKIPPED [INFO] hapi-fhir-spring-boot-samples ...................... SKIPPED [INFO] hapi-fhir-spring-boot-sample-client-apache ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-client-okhttp ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-server-jersey ......... SKIPPED [INFO] hapi-fhir-spring-boot-sample-server-jpa ............ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.941 s [INFO] Finished at: 2019-06-21T06:46:15Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata (downstream) on project hapi-fhir-base: Execution downstream of goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create-metadata failed.: NullPointerException -> [Help 1] [ERROR]
I'am using the latest HAPI FHIR version, Apache Maven 3.6.0, openjdk 11.0.3 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.10.1) OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.10.1, mixed mode) on a Ubuntu Server 18.10.
Are you familiar with this error? It's most likely a small fix but I'm way to blind to see it so I decided to directly ask here ;)