以下工件无法解析:external.gearman.service:gearman:jar:0.6.6

huangapple 未分类评论51阅读模式
英文:

The following artifacts could not be resolved: external.gearman.service:gearman:jar:0.6.6

问题

我正在使用带有 settings.xml 的 JFrog Artifactory,链接如下:

https://pastebin.com/thKdzie3

我正在使用带有 pom.xml 文件的项目构建一个 JAR 包,链接如下:

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 包没有被下载。请指导。

英文:

I am using JFrog Artifactory with settings.xml as

> https://pastebin.com/thKdzie3

I am building a jar of a project with pom.xml file as

> https://pastebin.com/0QndKK8H

I run "mvn clean install" and face the following error.

> [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]

How can I fix this issue? Might be external jars are not being download. Please guide.

答案1

得分: 0

如果依赖项在存储库中正确,您可以尝试使用 -U 选项来强制更新。

来自 mvn --help

-U,--update-snapshots               强制检查远程存储库中丢失的发布和更新的快照。
英文:

if dependencies are correctly in repo, you can try -U option to force update

from mvn --help

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

huangapple
  • 本文由 发表于 2020年5月5日 17:21:37
  • 转载请务必保留本文链接:https://java.coder-hub.com/61609800.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定