执行mvc package命令时报错如下错误:
[ERROR] Failed to execute goal on project alpha-scheduler: Could not resolve dependencies for project com.yidian.data:alpha-scheduler:jar:0.0.1-SNAPSHOT: Failure to find com.yidian.data:alpha-commons:jar:0.0.1-20190104.022416-2 in http://artifactory.yidian.com:8081/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
原因
在快照的更新间隔过去或强制更新之前,不会重新尝试解析
解决方案
删除本地已存在的快照包
网友评论