gpt4 book ai didi

gradle - Scaladocs构建失败kafka

转载 作者:行者123 更新时间:2023-12-03 04:04:13 27 4
gpt4 key购买 nike

我正在尝试使用gradle从源代码构建Apache kafka,如here所述,但我无法获取scaladocs。以下是相同的错误日志:

 == Expanded type of tree ==

ConstantType(value = Constant(kafka.utils.timer.TimerTaskList))

uncaught exception during compilation: java.io.IOException
File name too long
two errors found
:core:compileScala FAILED
:core:compileScala (Thread[Daemon worker,5,main]) completed. Took 1 mins 4.416 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:compileScala'.
> Compilation failed

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

BUILD FAILED

Total time: 1 mins 13.736 secs
Stopped 1 compiler daemon(s).
Received result

CommandFailure[value=org.gradle.launcher.exec.ReportedException:org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':core:compileScala'.] from daemon DaemonInfo{pid=5656, address=[4d0d3e79-f94a-43ca-b183-792d2bfe1a95 port:55666, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=1f1f4b55-9da9-4283-b361-8b0bfce3f208,javaHome=/usr/lib/jvm/java-7-oracle,daemonRegistryDir=/home/akshat/.gradle/daemon,pid=5656,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=512m,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant]}.

尽管我怀疑这是内存问题,但我看不到有任何更改的地方。我在这里尝试编辑:
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false

configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
}

但这没有帮助。

最佳答案

是的,这可能与Gradle内存设置有关。您可以通过设置环境变量set GRADLE_OPTS=-Xmx1024m(Windows)来增加Gradle堆,它可能会更好。

关于gradle - Scaladocs构建失败kafka,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31578878/

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