In the windows environment you will have .m2 folder in C:\Users\user_name location and you will copy your settings.xml file to it in order to setup your proxy settings and nexus repository locations and etc.
So What I have to done on Ubuntu environment to get similar setup after installing maven on it.
It is usually installed in USER_HOME/. m2/ directory. If you do not find a settings. xml file, copy the settings.
In the windows environment you will have . m2 folder in C:\Users\user_name location and you will copy your settings. xml file to it in order to setup your proxy settings and nexus repository locations and etc.
The Maven settings file, settings. xml , is usually kept in the . m2 directory inside your home directory.
Just open eclipse-->window-->preferences-->maven-->user settings-->in there see "local repository location". then find the location for your . m2/repository folder then delete that folder if your maven doesn't work properly.
As per Where is Maven Installed on Ubuntu it will first create your settings.xml on /usr/share/maven2/, then you can copy to your home folder as jens mentioned
$ cp /usr/share/maven3/conf/settings.xml ~/.m2/settings.xml
You can find your maven files here:
cd ~/.m2
Probably you need to copy settings.xml in your .m2
folder:
cp /usr/local/bin/apache-maven-2.2.1/conf/settings.xml .m2/
If no .m2 folder exists:
mkdir -p ~/.m2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With