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>
原文地址:https://www.cnblogs.com/createyuan/p/5477963.html