maven私服配置
- 下载nexus直接运行bin目录 ./nexus start启动;
- 浏览器输入http://localhost:8081/nexus
- maven需要配置。在~/.m2/setting.xml,添加一下内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| <?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups> </pluginGroups>
<proxies> </proxies>
<servers> </servers>
<mirrors> <mirror> <mirrorOf>*</mirrorOf> <name>kingsilk</name> <url>http://mvn.kingsilk.xyz/content/groups/public/</url> <id>kingsilk</id> </mirror> </mirrors>
<profiles> <profile> <id>downloadSources</id> <properties> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile> </profiles>
<activeProfiles> <activeProfile>downloadSources</activeProfile> </activeProfiles> </settings>
|
1.nexus下载地址选择对应的包
clean install -Dmaven.test.skip=true