gpt4 book ai didi

gradle - 在docker容器中执行 './gradlew build installDist --info'时,Gradle构建失败

转载 作者:行者123 更新时间:2023-12-03 06:15:23 26 4
gpt4 key购买 nike

我在SLES 12上创建了docker容器。

我已经安装了gitjava-1.8.0-openjdk-devel

克隆https://github.com/apache/incubator-geode.git的主分支

将目录更改为incubator-geode
然后执行./gradlew build installDist --info
这给出了一个错误说:
失败:生成失败,发生异常。

What went wrong:
Execution failed for task ':gemfire-core:test'.
> There were failing tests. See the report at: file:///incubator- geode/gemfire-core/build/reports/test/index.html

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

BUILD FAILED

文件index.html具有以下内容:
com.gemstone.gemfire.internal.compression.SnappyCompressorJUnitTest > testCompressByteArray FAILED
java.lang.IllegalStateException: Unable to load native Snappy library.
at com.gemstone.gemfire.compression.SnappyCompressor.<init>(SnappyCompressor.java:51)
at com.gemstone.gemfire.compression.SnappyCompressor.getDefaultInstance(SnappyCompressor.java:67)
at com.gemstone.gemfire.internal.compression.SnappyCompressorJUnitTest.testCompressByteArray(SnappyCompressorJUnitTest.java:34)

Caused by:
org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library is found for os.name=Linux and os.arch=s390x
at org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:299)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:163)
at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:145)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
at com.gemstone.gemfire.compression.SnappyCompressor.<init>(SnappyCompressor.java:48)
... 2 more

com.gemstone.gemfire.internal.compression.SnappyCompressorJUnitTest > testConstructor FAILED
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
at com.gemstone.gemfire.compression.SnappyCompressor.<init>(SnappyCompressor.java:48)
at com.gemstone.gemfire.compression.SnappyCompressor.getDefaultInstance(SnappyCompressor.java:67)
at com.gemstone.gemfire.internal.compression.SnappyCompressorJUnitTest.testConstructor(SnappyCompressorJUnitTest.java:45)

com.gemstone.gemfire.cache.AttributesFactoryJUnitTest > testInvalidConfigurations FAILED
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
at com.gemstone.gemfire.compression.SnappyCompressor.<init>(SnappyCompressor.java:48)
at com.gemstone.gemfire.compression.SnappyCompressor.getDefaultInstance(SnappyCompressor.java:67)
at com.gemstone.gemfire.cache.AttributesFactoryJUnitTest.testInvalidConfigurations(AttributesFactoryJUnitTest.java:214)

任何的想法?

最佳答案

我要做的第一件事是在docker容器中本地运行命令。您可以通过使用docker run运行容器并将“--endpoint / bin / bash”添加到运行行来执行此操作。有一些示例here。这将使您能够在本地执行gradlew命令并查看输出是什么。

我以为它与未设置JAVA_HOME或Java不在路径中有关。

关于gradle - 在docker容器中执行 './gradlew build installDist --info'时,Gradle构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31308508/

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