In intelliJ 2016.1.2 on Ubuntu 16.04:
I installed the latest version: sudo apt-get install maven
Then just dig to where IntelliJ is hiding which maven it will use:
File > Settings > Build, Execution, Deployment > Build Tools > Maven > Maven_home directory (I didn't have this env variable set, so you can choose):
-Cruled (Maven 2)
-Cruled (Maven 3) (was 3.0.5 and it was selected)
- / usr / share / maven <--- where recently downloaded maven lives (3.3.9)
Perhaps I could save some time and made the file /etc/profile.d/maven.sh and determined:
export MAVEN_HOME = / usr / share / maven after installing the latter using apt ...
Yumi Koizumi Jun 06 '16 at 2:14 2016-06-06 02:14
source share