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版本。