mploed / ddd-with-spring

Code examples for my conference talk on implementing ddd with spring
Apache License 2.0
754 stars 196 forks source link

./mvnw clean package fails with Java 13 #11

Open SSchwaiger opened 4 years ago

SSchwaiger commented 4 years ago

I've cloned the code and ran ./mvnw clean package. Unfortunately, the compilation of the artefacts fails and therefore the Docker images cannot be built. Is there a special Java version dependency or am I missing sth. else in my configuration?

Suggestion: what if you add a multi-stage build to your Dockerfile to ensure the correct Java and tooling versions?

[INFO] Reactor Summary: [INFO] [INFO] assets ............................................. SUCCESS [ 3.991 s] [INFO] credit-sales-funnel ................................ SUCCESS [ 0.827 s] [INFO] microarchitecture .................................. SUCCESS [ 0.238 s] [INFO] sharedmodel ........................................ SUCCESS [ 0.287 s] [INFO] aggregates ......................................... SUCCESS [ 0.743 s] [INFO] application-services ............................... SUCCESS [ 0.033 s] [INFO] adapters-input ..................................... SUCCESS [ 0.083 s] [INFO] adapters-output .................................... FAILURE [ 0.080 s] [INFO] scoring-application ................................ SKIPPED [INFO] ddd-with-spring 0.0.1-SNAPSHOT ..................... SKIPPED [INFO] scoring ............................................ SKIPPED [INFO] credit-agency 0.0.1-SNAPSHOT ....................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.098 s [INFO] Finished at: 2020-05-02T20:17:11+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project adapters-output: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException -> [Help 1]

java --version:

java 13.0.2 2020-01-14 Java(TM) SE Runtime Environment (build 13.0.2+8) Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

thiagocavalcanti commented 3 years ago

I reproduced the same behaviour using java 11 and 8

mploed commented 3 years ago

I'm currently working on updating the whole project to the latest Spring Boot and Spring Cloud versions and I assume this may fix the issue.

Theiaz commented 2 years ago

Building the project with OpenJDK 8 fixed it.