maven 下载不到依赖,

Java 发表评论

报错是这样的:
[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>

即可。

发表评论

邮箱地址不会被公开。 必填项已用*标注

昵称 *