Nexus搭建Maven私有仓库
http://blog.csdn.net/rickyit/article/details/54927101
Nexus3.3.1上传第三方jar包
http://blog.csdn.net/disalone201107/article/details/71600385
maven的settings.xml
<?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">
<!-- localRepository本地maven仓库的存储路径 -->
<localRepository>D:\Program Files\apache-maven-3.2.3\MavenRepository</localRepository>
<pluginGroups></pluginGroups>
<proxies></proxies>
<servers>
<server>
<id>base-3rdPart</id>
<username>deployment</username>
<password>deployment123</password>
</server>
</servers>
<mirrors>
<mirror>
<id>base-3rdPart</id>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
</mirrors>
<profiles></profiles>
</settings>
本地jar 上传命令
mvn deploy:deploy-file -DgroupId=com.csource -DartifactId=p2ploan -Dversion=1.0 -Dpackaging=jar -Dfile=D:\p2ploan-base.jar -Durl=http://localhost:8081/repository/3rd_part/ -DrepositoryId=base-3rdPart