1

Uinsg IntelliJ,目前常春藤给我这个错误信息:

:: downloading artifacts ::
[NOT REQUIRED] folder#scopt;2.10-3.1.0!scopt.jar

当我尝试使用我们公司内部的常春藤系统时。

我可以看到 jar 文件位于解析器指向的正确位置,并且 ivy 缓存(使用 IntelliJ)是干净的。

否则常春藤将下载请求的文件。

问题出在 IntelliJ 上,eclipse 可以找到并下载具有相同 ivy.xml 和 ivy.settings 文件的 jar,没有任何问题

这不是建议的重复 - 如果我更改我的内部 IntelliJ 设置以排除 jar 文件,那么我会在输出底部收到错误(说明不下载 jar 文件)。我目前在 intelliJ 中将日志记录为“全部”)

~~~~~

常春藤解析器代码是:

<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. 很难升级)

有任何想法吗?

4

1 回答 1

1

不幸的是,没有解决方案,但我们看到了同样的事情。然而,它似乎并不一致,它在某些开发人员机器上按预期工作,但在其他机器上失败并出现此错误。

于 2016-08-30T14:54:46.497 回答