I installed maven plugin for eclipse and was able to use it only in eclipse. I want to be able to run maven commands from terminal so installed maven as explained in the below link:
http://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/
My questions are
settings.xml
in this path /home/raki/.m2/
-- What should I do for this?The Maven settings file, settings. xml , is usually kept in the . m2 directory inside your home directory.
settings.xml
is not required (and thus not autocreated in ~/.m2 folder) unless you want to change the default settings.
Standalone maven and the maven in eclipse will use the same local repository (~/.m2 folder). This means if some artifacts/dependencies are downloaded by standalone maven, it will not be again downloaded by maven in eclipse.
Based on the version of Eclipse that you use, you may have different maven version in eclipse compared to the standalone. It should not matter in most cases.
Installation of Maven doesn't create the settings.xml
file. You have to create it on your own. Just put it in your .m2
directory where you expected it, see http://maven.apache.org/settings.html for reference. The m2eclipse plugin will use the same settings file as the command line.
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