标签:
<?xml version="1.0" encoding="UTF-8"?> <!-- -------------------------------------------------在父类POM的配置如下: --> <!-- 本地快照 和release 发布 的配置 --> <distributionManagement> <repository> <!-- ID要和MAVEN中conif/setting.xml 中的server保持一致 --> <id>releases</id> <name>User Project Release</name> <!-- release版本的url地址 --> <url>http://localhost:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <!-- ID要和MAVEN中conif/setting.xml 中的server保持一致 --> <id>snapshots</id> <name>User Project SNAPSHOTS</name> <!-- snapshot版本的url地址 --> <url>http://localhost:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> <repositories> <repository> <id>central</id> <name>central</name> <!-- 配置仓库的地址 --> <url>http://localhost:8081/nexus/content/groups/</url> </repository> </repositories> <!-- maven setting.xml的配置如下 ------------------------------------------------------- --> <!-- releases仓库的用户认证信息 --> <server> <id>releases</id> <username>admin</username> <password>admin123</password> </server> <!-- snapshots 快照认证信息 --> <server> <id>snapshots</id> <username>admin</username> <password>admin123</password> </server> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://localhost:8081/nexus/content/groups/public/</url> </mirror>
标签:
原文地址:http://www.cnblogs.com/blog-java/p/4527415.html