I have downloaded and installed maven3.3.3. on uBuntu 14.04 and when I run the command
mvn --version
I get this error
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME `enter code here`environment variable and mvn script match.
I have tries to set the enviroment in /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/apache-maven-3.3.3/bin"
JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
MAVEN_OPTS="-Xms1024m -Xmx2048m -Dmaven.surefire.debug=-Xmx2048m -XX:MaxPermSize=128m"
M2_HOME="/opt/apache-maven-3.3.3"
your help will be greatly appreciated
G