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

Build with mvn is not working #83

Closed
hisashiyamaguchi opened this issue Feb 12, 2021 · 2 comments
Closed

Build with mvn is not working #83

hisashiyamaguchi opened this issue Feb 12, 2021 · 2 comments

Comments

@hisashiyamaguchi
Copy link

Describe the bug
A clear and concise description of what the bug is.

I'm trying to build with mvn, but it's not working. You can find the output here.
https://gist.github.com/hisashiyamaguchi/7e8ffc6ae8f0db78cd55456078b63204

To Reproduce

  1. Provide as much of a code sample as possible.
    cd server-with-spring-boot/ && mvn spring-boot:run
  2. provide full stack traces if possible

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environmental Data:

  • Java Version
    java version "1.7.0_261"
    OpenJDK Runtime Environment (rhel-2.6.22.2.amzn2.0.1-x86_64 u261-b02)
    OpenJDK 64-Bit Server VM (build 24.261-b02, mixed mode)

  • Maven Version
    Maven home: /usr/share/apache-maven
    Java version: 1.7.0_261, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.amzn2.0.1.x86_64/jre
    Default locale: ja_JP, platform encoding: UTF-8
    OS name: "linux", version: "4.14.214-160.339.amzn2.x86_64", arch: "amd64", family: "unix"

  • OS (Windows/Linux/MacOS)
    Linux ip-172-31-18-187.us-east-2.compute.internal 4.14.214-160.339.amzn2.x86_64 javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty #1 SMP Sun Jan 10 05:53:05 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Additional context
Add any other context about the problem here.

@Hakky54
Copy link
Owner

Hakky54 commented Feb 12, 2021

Hi @hisashiyamaguchi

The server project depends on another maven submodule and the stacktrace is saying that it cannot find that artifact. What you need to do is first run mvn clean install within the root directory.

I also see that you are using java 7, but the documentation mentions to use java 11. That will also resolve other upcoming errors.

Can you retry and share your results here?

@hisashiyamaguchi
Copy link
Author

Thanks for the quick and detailed follow-up - it seemed that JAVA_HONE was not configured properly. After putting the 2lines on my .bashrc here, it works!

export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64
export PATH=$JAVA_HOME/bin:$PATH

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

2 participants