I got the maven .tar file from http://maven.apache.org/download.cgi, and installed it to the path /usr/local/. I run the mvn -version command in the new window, the output i
Open up the IntelliJ settings dialog.
In Maven-->Runner options set a following VM option: -Dmaven.multiModuleProjectDirectory=project root