maven 下载不到依赖,


报错是这样的:
[ERROR] Failed to execute goal on project angel: Could not resolve dependencies for project com.cyou:angel:war:1: Failure to find com.changyou:oauth:jar:3.1 in http://10.1.16.101:250/nexus/content/groups/PublicRepository/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-repos has elapsed or updates are forced -> [Help 1]

在pom.xml中加上:

<releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases>
<snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots>

即可。


posted @ 2018-05-28 21:19  方家小白  阅读(2)  评论(0编辑  收藏  举报