读书人

maven私服的配备

发布时间: 2012-09-18 16:21:42 作者: rapoo

maven私服的配置

settings.xml

设置本地仓库

<!-- nexus-releases nexus-snapshots与settings.xml中server下的id对应 --><distributionManagement><repository><id>nexus-releases</id><name>Nexus Releases Repository</name><url>http://localhost:8081/nexus/content/repositories/releases/</url></repository><snapshotRepository><id>nexus-snapshots</id><name>Nexus Snapshots Repository</name><url>http://localhost:8081/nexus/content/repositories/snapshots/</url></snapshotRepository></distributionManagement>

最后别忘了使用mvn help:effective-settings -s F:/.m2/settings.xml校验配置

检查setting中是否含有mirror信息

使用mvn help:effective-pom -s F:/.m2/settings.xml查看pom的完整性









读书人网 >软件架构设计

热点推荐