Question : Maven issue on MAC

I just download apache maven and was able to install it on my MAC. I also did export and path mentioned in maven site. However, i don't have any /usr/local directory on my MAC. so i pretty much unzipped in /Users/xyz/Downloads/maven-2.0.11.

I aldo created a new Maven project in eclipse. So far so good. When i try to run the pom.xml with right click -> maven build it stated :-

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: /Users/xyz/.m2/settings.xml

Can anyone tell me how to fix it ?

Answer : Maven issue on MAC

/usr/local does not exist by default.

To create it, from the terminal type:

sudo mkdir -p /usr/local

Have you verified that Maven is installed correctly?

Run mvn --version to verify that it is correctly installed.

When you exported the variables, did you adjust them for the new paths required by not using /usr/local? Can you post the output from

echo $M2_HOME
echo $M2
echo $JAVA_HOME
echo $PATH

Cheers,

Joel



Random Solutions  
 
programming4us programming4us