蚂蚁,失败的下载都是javadoc相关的

时间:2013-10-16 13:27:57

标签: java ant ivy

我对java并不是很熟悉,但我有一个我正在研究的项目,在我的工作计算机上,一切都按预期工作(构建,运行等),但是,当我ant -v时在我的家用电脑上,我得到以下内容。

[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]      [NOT FOUND  ] javax.mail#mail;1.4!mail.jar(javadoc) (99ms)
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    http://repo1.maven.org/maven2/javax/mail/mail/1.4/mail-1.4-javadoc.jar
[ivy:retrieve]      [NOT FOUND  ] junit#junit;4.8.1!junit.jar(javadoc) (47ms)
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    http://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1-javadoc.jar
[ivy:retrieve]      [NOT FOUND  ] com.mockrunner#mockrunner;0.3.1!mockrunner.jar(source) (47ms)
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    http://repo1.maven.org/maven2/com/mockrunner/mockrunner/0.3.1/mockrunner-0.3.1-sources.jar
[ivy:retrieve]      [NOT FOUND  ] com.mockrunner#mockrunner;0.3.1!mockrunner.jar(javadoc) (56ms)
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    http://repo1.maven.org/maven2/com/mockrunner/mockrunner/0.3.1/mockrunner-0.3.1-javadoc.jar
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]      ::              FAILED DOWNLOADS            ::
[ivy:retrieve]      :: ^ see resolution messages for details  ^ ::
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]      :: javax.mail#mail;1.4!mail.jar(javadoc)
[ivy:retrieve]      :: junit#junit;4.8.1!junit.jar(javadoc)
[ivy:retrieve]      :: com.mockrunner#mockrunner;0.3.1!mockrunner.jar(source)
[ivy:retrieve]      :: com.mockrunner#mockrunner;0.3.1!mockrunner.jar(javadoc)
[ivy:retrieve]      ::::::::::::::::::::::::::::::::::::::::::::::

1 个答案:

答案 0 :(得分:1)

通过进入ivy.xml文件并更改依赖关系来解决问题

WAS(没有工作)

<dependency org="javax.mail" name="mail" rev="1.4"/>
<dependency org="junit" name="junit" rev="4.8.1"/>
<dependency org="com.mockrunner" name="mockrunner" rev="0.3.1"/>

IS(固定)

<dependency org="javax.mail" name="mail" rev="1.4" conf="default->master"/>
<dependency org="junit" name="junit" rev="4.8.1" conf="default->master"/>
<dependency org="com.mockrunner" name="mockrunner" rev="0.3.1" conf="default->master"/>