利用关系蚂蚁/常青藤检索依赖之间的HTTP验证? [英] http authentication between using ant/ivy retrieving dependency from nexus?

查看:114
本文介绍了利用关系蚂蚁/常青藤检索依赖之间的HTTP验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图与常春藤运行ant时从一个承上启下库中获取的依赖时,我有一个问题。依赖永远不会解决,详细输出运行时,犯罪嫌疑人行[常春藤:检索]认证:K ='@'C ='空'

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.

版本 - ANT@1.7.1,IVY@2.1.0,JDK@1.6.0_20

Versions - ANT@1.7.1, IVY@2.1.0, JDK@1.6.0_20

有一个便条,以确保公地httpclient的在类路径允许HTTP验证,我相信它是,虽然已经无法明确确认。

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.

任何帮助很多AP preciated。

Any help is much appreciated.

推荐答案

您得到一个HTTP 401错误?这将表明问题与使用的凭据登录的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:

<credentials host="${nexus.host}" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}" />  

该疑难杂症是你需要指定正确的Nexus安全领域。

The gotcha is you need to specify the correct Nexus security realm.

这篇关于利用关系蚂蚁/常青藤检索依赖之间的HTTP验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆