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
If you don't rely on an external IDE, remember to put this in MAVEN_OPTS, like so (Linux)
export MAVEN_OPTS=-Dmaven.multiModuleProjectDirectory=
From Apache Maven's documentation, it's good to learn about this variable:
This variable contains parameters used to start up the JVM running Maven and can be used to supply additional options to globally to Maven. E.g. JVM memory settings could be defined with the value -Xms256m -Xmx512m.
You can refer to this link https://maven.apache.org/configure.html