Windows下安裝Nexus並配置
1、下載
2、解壓並啟動
3、登入,使用者名稱是:admin ,密碼是:admin123
4、設定maven中央倉庫為aliyun
5、新增3rdParty,並在maven-public裡面新增3rdP
6、配置本地maven檔案,如下所示:
<servers>
<server>
<id>3rdParty</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<mirrors>
<mirror>
<id>maven-public</id>
<mirrorOf>central</mirrorOf>
<name>awbeci maven respository</name>
<url>http://localhost:8081/repository/maven-public/</url>
</mirror>
</mirrors>
7、上傳jar包,在jar包所在位置輸入命令:
mvn deploy:deploy-file
-DgroupId=your-groupid
-DartifactId=your-artifactid
-Dversion=your-version
-Dpackaging=jar
-Dfile=yourfile
-Durl=your-3rdparty-url
-DrepositoryId=your-repository-id