5.4. Java language

Install OpenJDK:

1sudo apt install -y openjdk-11-jdk

5.4.1. Maven

Install Maven:

2sudo mkdir /opt/maven
3sudo wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz -O /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz
4sudo tar xfz /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz -C /opt/maven
5sudo ln -s apache-maven-$MAVEN_VERSION /opt/maven/current

5.4.2. SDKMAN!

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.

Install SDKMAN:

1curl -s "https://get.sdkman.io" | bash

Install one or more versions of OpenJDK and Maven for the current user:

1# for example
2sdk install java 11.0.7-open
3sdk install maven 3.6.3