I just installed Maven 3.3.1 on Mac OS X, and building a Maven Project with Eclipse is giving me this error:
-Dmaven.multiModuleProjectDirectory system property is not set.
Check $M2_HOME environment variable and mvn script match.
Eclipse you need to go like this.
Window-> Preference -> Java -> Installed JREs -> Edit
In the edit
Default VM arguments you need to put
If you already set the maven home.