maven私服的配备

maven私服的配置settings.xml设置本地仓库!-- nexus-releases nexus-snapshots与settings.xml中server下

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的完整性