idea 上传jar包到nexus
作者:互联网
项目pom配置
上面有两个配置,一个是发布版的仓库,另一个是快照版的仓库
id 必须跟maven 的conf/setting.xml 里配的仓库id相应
<distributionManagement>
<repository>
<id>releases</id>
<name>releases</name>
<url>http://10.100.12.13:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>snapshots</name>
<url>http://10.100.12.13:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
maven conf/setting.xml 配置仓库认证信息
在conf/setting.xml 里面配置上述节点信息
上述server/id 的值必须跟pom 文件配置的id相应
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
标签:xml,releases,nexus,jar,idea,snapshots,maven,conf,id 来源: https://blog.csdn.net/qq_31964019/article/details/117394714