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

407 Views Asked by At

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

There are 1 best solutions below

1
Lijun Wu On

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