对这个问题的解决方法 在maven 插件中的 setting.xml 需要配置服务的授权信息
<server> <id>releases</id> <username>admin</username> <password>admin123</password> </server> <server> <id>snapshots</id> <username>admin</username> <password>admin123</password> </server> </servers>View Code
然后再项目的Pom文件需要配置自己的私服仓库地址
<!-- 远程nexus仓库 --> <distributionManagement> <repository> <id>release</id> <name>Nexus Release Repository</name> <url>http://xxxx/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Nexus Release Repository</name> <url>http://xxxx/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement>View Code
注意:setting中的 Servers中的ID 要欲 pom文件中的 repository的ID 必须一致
标签:http,Unauthorized,deploy,nexus,admin123,snapshots,maven,Release From: https://www.cnblogs.com/shangxiaofei/p/17612617.html