.m2,Ubuntu中的settings.xml [英] .m2 , settings.xml in Ubuntu

查看:976
本文介绍了.m2,Ubuntu中的settings.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆