上面有两个配置,一个是发布版的仓库,另一个是快照版的仓库
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>
在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>