Uinsg IntelliJ,当前ivy给我的错误消息是:
:: downloading artifacts ::
[NOT REQUIRED] folder#scopt;2.10-3.1.0!scopt.jar
当我尝试使用我们公司内部的常春藤系统时。
我可以看到jar文件位于解析程序指向的正确位置,并且ivy缓存(使用IntelliJ)是干净的。
否则Ivy将下载请求的文件。
问题在于IntelliJ,eclipse可以找到并下载带有相同ivy.xml和ivy.settings文件的jar,而不会出现任何问题
这不是建议的重复-如果我更改内部IntelliJ设置以排除jar文件,那么我会在输出的底部得到一个错误(声明不下载jar文件)。我目前在intelliJ中以"All"的身份登录
~~~~
ivy解析器代码为:
<resolvers>
<filesystem name="secret-source-resolver" checkmodified="true" checkconsistency="false">
<artifact pattern="//a/b/c/d/[organisation]/e/f/[module]/[artifact]_[revision].[ext]" />
</filesystem>
</resolvers>
<modules>
<module organisation="theOrg" name="scopt" resolver="secret-source-resolver" />
</modules>
ivy.xml文件是
<dependencies>
<dependency org="theOrg" name="scopt" rev="2.10-3.1.0">
<artifact name="scopt" type="jar" force="true" conf="runtime" />
</dependency>
</dependencies>
看看我从中获取文件的文件夹,jar文件就出现了。
最后,在输出中:
don't use cache for theOrg#scopt;2.10-3.1.0: checkModified=true
trying //v/campus/ny/cs/theOrg/shared/apps/scopt/scopt_2.10-3.1.0.jar
tried //v/campus/ny/cs/theOrg/shared/apps/scopt/scopt_2.10-3.1.0.jar
secret-source-resolver: no ivy file found for theOrg#scopt;2.10-3.1.0: using default data
checking theOrg#scopt;2.10-3.1.0[default] from secret-source-resolver against [none]
module revision kept as first found: theOrg#scopt;2.10-3.1.0[default] from secret-source-resolver
found theOrg#scopt;2.10-3.1.0 in secret-source-resolver
会表明ivy可以找到它,它只是觉得下载会……不好?
我目前正在使用intelliJ 12.0(公司的事情,v.难以升级)
有什么想法吗?
不幸的是,没有解决方案,但我们看到了同样的情况。然而,它似乎并不一致,在一些开发人员的机器上可以正常工作,但在其他机器上却因此错误而失败。