Install jenv on Linux or Mac

Open your favourite terminal and enter the following command:

$ curl -L -s get.jenv.io | bash

Install Java

Because I can not redistribute Java SDK, so you should download it from http://www.oracle.com/technetwork/java/javase/downloads/index.html and install. After install please execute following command:

$ mkdir -p $HOME/.jenv/candidates/java
$ ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/home $HOME/.jenv/candidates/java/1.8.0_71
$ jenv default java 1.8.0_71

Install maven

$ jenv install maven 3.3.9