0

私は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]      ::::::::::::::::::::::::::::::::::::::::::::::
4

1 に答える 1

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"/>

固定されています)

<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"/>
于 2013-10-16T13:37:27.183 に答える