gpt4 book ai didi

hadoop - 不耐烦的第 1 部分 gradle 公会的级联失败

转载 作者:可可西里 更新时间:2023-11-01 16:53:55 26 4
gpt4 key购买 nike

我刚刚获得 Gradle 1.4 和 Hadoop 2.7.0。在我的 Ubuntu 14.04 虚拟机上。

我在 Impatient tuturial 存储库的 Cascading 的第 1 部分目录中。

当我运行“gradle clean jar”时,我得到以下信息:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/Impatient/build.gradle' line: 29

* What went wrong:
A problem occurred evaluating root project 'impatient'.
> Could not find method jcenter() for arguments [] on repository container.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.502 secs

有人可以指出正确的方向来解决这个问题吗?

此外,tutorial建议使用 IDE,我安装了推荐的 Intellij。当我运行“gradle ideaModule”时,我收到与上面相同的构建失败消息。

最佳答案

您使用的是 Gradle 1.4,并且教程声称已经使用 Gradle 1.12 进行了测试,因此如果可能,您可以简单地尝试将 Gradle 升级到 1.12。

jcenter() 是根据以下内容添加到 Gradle 1.7 中的: https://stackoverflow.com/a/27477763/4563229

使用另一个答案中描述的包装器也应该有效。

关于hadoop - 不耐烦的第 1 部分 gradle 公会的级联失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30992525/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com