有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java无法解析以下工件:外部。gearman。服务:gearman:jar:0.6.6

我正在使用JFrog Artifactory进行设置。xml作为

https://pastebin.com/thKdzie3

我正在用pom构建一个项目的罐子。xml文件作为

https://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。请导游


共 (1) 个答案

  1. # 1 楼答案

    如果repo中的依赖项正确,可以尝试使用-U选项强制更新

    来自mvn帮助

    -U, update-snapshots               Forces a check for missing
                                        releases and updated snapshots on
                                        remote repositories