maven 更新SNAPSHOT依赖

来源:互联网 发布:超牛数据恢复免费版 编辑:程序博客网 时间:2024/05/22 13:03

pom.xml中 enable SNAPSHOT库:

<repositories>
<repository>
<id>nexus</id>
<name>Nexus Mirror</name>
<url>http://dev.xxx/nexus/content/groups/public</url>
<releases>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>

</repository>



另:maven 安装目录settings.xml 

    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <name>Nexus Mirror</name>
      <url>http://xxx/nexus/content/groups/public</url>
    </mirror>

虽然settings.xml 配置了下载镜像,但要注意是否enable了snapshot版本。


0 0
原创粉丝点击