Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.