进入安装目录 /opt/modules/apache-maven-3.0.5/conf ,编辑 settings.xml 文件 * 修改 mirrors 内容: mirror idnexus-osc/id mirrorOf*/mirrorOf nameNexusosc/name urlhttp://maven.oschina.net/content/groups/public//url /mirror * 修改 profiles 内容
-
进入安装目录 /opt/modules/apache-maven-3.0.5/conf,编辑 settings.xml 文件
* 修改内容:
nexus-osc
*
Nexus osc
http://maven.oschina.net/content/groups/public/
* 修改内容:
jdk-1.6
1.6
nexus
local private nexus
http://maven.oschina.net/content/groups/public/
true
false
nexus
local private nexus
http://maven.oschina.net/content/groups/public/
true
false
- 复制配置
将该配置文件复制到用户目录,使得每次对maven创建时,都采用该配置
* 查看用户目录【/home/hadoop】是否存在【.m2】文件夹,如没有,则创建
$ cd /home/hadoop
$ mkdir .m2
* 复制文件
$ cp /opt/modules/apache-maven-3.0.5/conf/settings.xml ~/.m2/
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn