Fork me on GitHub

linux服务之maven

 

 

curl -O http://mirrors.noc.im/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
[root@db maven]# vi ../apache-maven-3.3.9/conf/settings.xml
以下是配置项,也就是需要修改添加的
<localRepository>/root/packages/maven</localRepository> <server> <id>nexus</id> <username>deployment</username> <password>deployment</password> </server> <mirror> <id>nexus</id> <mirrorOf>central</mirrorOf> <url>http://192.168.1.112:8081/nexus/content/groups/public</url> </mirror> <profile> <id>myProfile</id> <repositories> <repository> <id>myRepository</id> <name>Repository for me</name> <url>http://192.168.1.112:8081/nexus/content/groups/public</url> </repository> </repositories> </profile>

 

posted on 2016-05-10 15:22  阳光-源泉  阅读(316)  评论(0)    收藏  举报

导航