.m2,Ubuntu中的settings.xml [英] .m2 , settings.xml in Ubuntu
问题描述
在Windows环境中,您将在C:\ Users \ user_name位置拥有.m2文件夹,并且您将settings.xml文件复制到该文件夹,以便设置代理设置和nexus存储库位置等。
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.
那么在Ubuntu环境中我需要做些什么才能在安装maven之后获得类似的设置。
So What I have to done on Ubuntu environment to get similar setup after installing maven on it.
推荐答案
根据在Ubuntu上安装了Maven 它将首先在/ usr / share / maven2 /上创建settings.xml,然后你可以像jens提到的那样复制到你的主文件夹
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
$ cp /usr/share/maven3/conf/settings.xml ~/.m2/settings.xml
这篇关于.m2,Ubuntu中的settings.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!