Quick addion of the things around Java 11 that is required to get your enviroment ready for development. See part one on the Java 11 installation first: Part 1
Update Maven
Getting the latest version of maven is highly recommended here is quick instruction on how to upgarde. apt does not seem to have the latest version.
Check the donwload page of maven for the latest version and copy the url of lates version : Maven Download Page Replace below with your version.
Setup the Enviroment variables:
Past following config:
If you are running multiple version of java is recommend to use the maven config file to set the java home.
Past this content (check you java directory). Also makes it easy to comment out if you want to use Java 8 for other maven project.
Maven pom.xml
It is also recommend using the latest maven compile by setting in pom.xml
“release” is a new config argument for Java 9+. More Info. Can also be set with property maven.compiler.release