在使用 ivy 运行 ant 时尝试从 Nexus 存储库检索依赖项时遇到问题。依赖关系永远不会解决,当使用详细输出运行时,可疑行是“[ivy:retrieve]authentication:k='@'c='null'”。
我尝试了许多不同的向ivy提供凭据配置的变体,但没有改变结果。更奇怪的是,存储库主机名似乎来自解析器,而不是来自提供的凭据。
版本 - [电子邮件受保护]、[电子邮件受保护], [email protected]_20
有一条注释确保类路径上的 commons-httpclient 允许 http 身份验证,我确信它是,尽管无法明确确认。
非常感谢任何帮助。
I have an issue when attempting to retrieve a dependency from a nexus repository when running ant with ivy. the dependency is never resolved, when running with verbose output the suspect line is '[ivy:retrieve] authentication: k='@' c='null'.
I have tried many different variations of providing the credentials configuration to ivy, but without changing the result. Stranger still the repo hostname appears to come from the resolver, not from the provided credentials.
Versions - [email protected], [email protected], [email protected]_20
There was a note to ensure that commons-httpclient in on the classpath to allow http authentication, which I am sure it is, although have been unable to confirm explicitly.
Any help is much appreciated.
发布评论
评论(1)
您收到 HTTP 401 错误吗?这表明用于登录 Nexus 的凭据存在问题。
可以通过在 ivy 中添加 credentials 条目来修复设置文件:
问题是您需要指定正确的 Nexus 安全领域。
Are you getting a HTTP 401 error? That would indicate problems with the credentials being used to login to Nexus.
Can be fixed by adding a credentials entry in your ivy settings file:
The gotcha is you need to specify the correct Nexus security realm.