我正在将JFrog Artifactory与settings.xml一起使用
https://pastebin.com/thKdzie3
我正在使用pom.xml文件作为
构建一个项目的jarhttps://pastebin.com/0QndKK8H
我运行“ mvn clean install”并遇到以下错误。
> [ERROR] Failed to execute goal on project scrybe_cronjobs: Could not
> resolve dependencies for project
> com.abc:scrybe_cronjobs:jar:PHP7-1.0: The following artifacts could
> not be resolved: external.gearman.service:gearman:jar:0.6.6,
> external.smack:smack-core:jar:0.1, external.apns:apns:jar:1.0: Failure
> to find external.gearman.service:gearman:jar:0.6.6 in
> http://maven-repo.abc.net:8081/artifactory/libs-release was
> cached in the local repository, resolution will not be reattempted
> until the update interval of central has elapsed or updates are forced
> -> [Help 1] [ERROR]
如何解决此问题?可能是外部jar不被下载。请指导。
答案 0 :(得分:0)
如果仓库中的依赖项正确无误,则可以尝试使用-U选项强制更新
来自mvn --help
-U,--update-snapshots Forces a check for missing
releases and updated snapshots on
remote repositories