Ask Your Question
2

How can I install maven and jdk8 on an Alpine Linux image?

asked 2023-07-09 14:04:33 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-09 14:13:01 +0000

pufferfish gravatar image

To install Maven and JDK8 on an Alpine Linux image, you can follow these steps:

  1. Update the package index:
apk update
  1. Install OpenJDK8:
apk add openjdk8
  1. Set the JAVA_HOME environment variable:
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
  1. Install Maven:
apk add maven

You should now have Maven and JDK8 installed on your Alpine Linux image.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-09 14:04:33 +0000

Seen: 13 times

Last updated: Jul 09 '23