简体   繁体   English

无法在代理Maven存储库中找到依赖项

[英]Failure to find dependency in proxies Maven repository

The Maven Error: Maven错误:

Failed to execute goal on project XXXXXX: Could not resolve dependencies for project XXXXXX:XXXXXX:0.1-SNAPSHOT: Failure to find com.oracle.ucm:idcserver:jar:11.1.1.8 in [http://internal-proxy:8080/nexus-2.6.4/content/groups/XXXXXX] was cached in the local repository, resolution will not be reattempted until the update interval of internal-proxy has elapsed or updates are forced. 无法在项目XXXXXX上执行目标:无法解决项目XXXXXX:XXXXXX:0.1-SNAPSHOT的依赖项:无法在[http:// internal-proxy:8080 /中找到com.oracle.ucm:idcserver:jar:11.1.1.8 nexus-2.6.4 / content / groups / XXXXXX]已缓存在本地存储库中,直到经过内部代理的更新间隔或强制进行更新后,解决方案才会重新尝试。

I have confirmed that the artifact has indeed been proxied from the external source. 我已经确认该工件确实已从外部来源进行了代理。

Why can the local Maven build resolve the dependency in either the cloud or the intranet proxy? 为什么本地Maven构建可以解决云或Intranet代理中的依赖性? How can I attempt to debug such problems? 如何尝试调试此类问题? I am administrator of the local Maven repository, so I can debug/change configuration suggested here. 我是本地Maven存储库的管理员,因此可以调试/更改此处建议的配置。

Any insight would be welcomed. 任何见识都将受到欢迎。

Do you have this particular ucm jar with you ? 你有这个特别的ucm罐吗? The jar com.oracle.ucm:idcserver:jar:11.1.1.8 is not there on maven central repository and thus will never be fetched since it does not exist there on maven central. jar com.oracle.ucm:idcserver:jar:11.1.1.8在maven中央存储库中不存在,因此永远不会被提取,因为它在maven com.oracle.ucm:idcserver:jar:11.1.1.8上不存在。

Last I remember, you will have to manually install it in your local repository. 最后我记得,您将必须手动将其安装在本地存储库中。 Check this post here 在这里检查这篇文章

Ugh, it was an improper URL in the settings.xml. gh,这是settings.xml中的网址不正确。

I wish the error was more transparent such as connection refused. 我希望错误更加透明,例如连接被拒绝。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM