遇到這種問題
1、查看IDEA的配置:
IDEA環境,File | Settings | Build, Execution, Deployment | Build Tools | Maven
查看user settings file是否是自己指定的配置文件
2、查看私服配置
檢查私服的配置信息,是否是自己上傳的那個私服地址,
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://artifactory.xxx.com/libs-releases</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://artifactory.xxx.com/libs-snapshots</url>
</repository>
3、如果還是不行,看看自己的jar包上傳的路徑snapshot應在在 lib-snapshot 下,release應該在release下,
如果release裏snapshots的enable爲false,那麼你將下載不了release文件夾下的snopshotjar