nexus镜像&idea中配置
1、nexus信息
url:http://10.9.11.156:8081/ admin admin123
2、idea设置
3、settings.xml文件
<settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0" xsi:schemaLocation= "http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" > <servers> <server> < id >base-3rdPart< /id > <username>admin< /username > <password>admin123< /password > < /server > <server> < id >release< /id > <username>admin< /username > <password>admin123< /password > < /server > <server> < id >snapshot< /id > <username>admin< /username > <password>admin123< /password > < /server > < /servers > <mirrors> <mirror> < id >Nexus< /id > <name>Nexus Public Mirror< /name > <url>http: //10 .9.11.156:8081 /repository/maven-public/ < /url > <mirrorOf>central< /mirrorOf > < /mirror > <mirror> < id >alimaven< /id > <mirrorOf>central< /mirrorOf > <name>aliyun maven< /name > <url>http: //maven .aliyun.com /nexus/content/repositories/central/ < /url > < /mirror > <mirror> < id >repo1< /id > <mirrorOf>central< /mirrorOf > <name>Human Readable Name for this Mirror.< /name > <url>http: //repo1 .maven.org /maven2/ < /url > < /mirror > <mirror> < id >repo2< /id > <mirrorOf>central< /mirrorOf > <name>Human Readable Name for this Mirror.< /name > <url>http: //repo2 .maven.org /maven2/ < /url > < /mirror > < /mirrors > < /settings > |