Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./mvnw clean package fails with Java 13 #11

Open
SSchwaiger opened this issue May 2, 2020 · 3 comments
Open

./mvnw clean package fails with Java 13 #11

SSchwaiger opened this issue May 2, 2020 · 3 comments
Assignees

Comments

@SSchwaiger
Copy link

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
Copy link

I reproduced the same behaviour using java 11 and 8

@mploed mploed self-assigned this Oct 16, 2020
@mploed
Copy link
Owner

mploed commented Oct 18, 2020

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
Copy link

Theiaz commented Oct 8, 2021

Building the project with OpenJDK 8 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants