maven distributionManagement


<!-- 子pom -->
<
distributionManagement> <snapshotRepository> <id>dev</id> <name>dev-repository</name> <url>http://nexus.secoo.com:8081/nexus/content/repositories/hosted-dev/</url> </snapshotRepository> </distributionManagement>

 

parent pom 里的distributionManagement会被继承,但子pom可以覆盖

注意:snapshot版本优先snapshotRepository然后repository。所以当父pom定义snapshotRepository,子pom定义repository,在deploy snapshot时,优先父pom的snapshotRepository,除非子pom定义snapshotRepository去覆盖

posted @ 2020-03-21 22:47  zbjice  阅读(898)  评论(0)    收藏  举报