本文共 1821 字,大约阅读时间需要 6 分钟。
Nexus Repository Manager 3
下载路径:D:/nexus
cmd转到解压缩文件bin 目录下,输入命令 nexus.exe /run,等待项目启动完成,在浏览器中输入:
nexus.exe /install nexus
注册服务nexus.exe /start nexus
(注意服务启动是需要一定时间的)nexus.exe /stop nexus
nexus.exe /uninstall nexus
username:admin
password:admin123
Name:maven-proxy
Remote storage URL:
配置远程仓库以及releases授权信息(用来发布到远程仓库中)
releases admin admin123 nexus * http://localhost:8081/repository/maven-proxy/
pom.xml 对应配置--server的id与repository的id需要对应
snapshots User Porject Snapshot http://localhost:8081/repository/maven-snapshots/ ;true releases User Porject Release http://localhost:8081/repository/maven-releases/ ;
mvn clean deploy -X -Dmaven.test.skip=true
发布指定包到远程仓库中
mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=1.0.RELEASES -Dpackaging=jar -Dfile=D:\ojdbc14.jar -Durl=http://localhost:8081/repository/maven-releases/ -DrepositoryId=maven-repository-releases
转载于:https://blog.51cto.com/9737076/2050806