当我试图在intellij中构建我的JMETET5.4.3源代码时,如果我遇到以下错误,我无法解决这些错误
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':src:dist:verifyReleaseDependencies'.
> External dependencies differ (you could update src\dist\src\dist\expected_release_jars.csv if you add -PupdateExpectedJars):
55965681 => 55965659 bytes (-22 bytes)
- 207909 log4j-1.2-api-2.17.0.jar
- 301892 log4j-api-2.17.0.jar
- 1789565 log4j-core-2.17.0.jar
- 24258 log4j-slf4j-impl-2.17.0.jar
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':src:protocol:http:test'.
> There were failing tests. See the report at: file:///E:/JMeter/apache-jmeter-5.4.3_src/apache-jmeter-5.4.3/src/protocol/http/build/reports/tests/test/index.html
谁能帮我一下。
有没有办法在Intellij改变你的Gradle版本到一个旧版本,请让我知道。
是否有办法在ANT中而不是Gradle中构建jmeter 5.4.3?
1条答案
按热度按时间ej83mcc01#
我无法重现您的问题:
我强烈怀疑任何人都可以,因为很久以前就已经注意到了,JMeter 5.4.3 was released in December 2021和大概很多contributors从那时起就在添加他们的代码和构建/测试JMeter。
就我个人而言,我不是一个JMeter贡献者,但我需要不时地编译它,以修改它,以满足我的项目需要。
以防万一我通常遵循的步骤:
1.从Apache档案中获取所需的JMeter源代码版本,在您的情况下,它将是https://archive.apache.org/dist/jmeter/source/apache-jmeter-5.4.3_src.zip
1.验证下载的存档的checksum,以防万一
1.解压缩归档文件
1.在IntelliJ Idea中,将
build.gradle.kts
作为项目打开1.再等半个小时
1.......
1.利润?
还要注意的是,根据9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure文章和JMeter Best Practices,您应该始终使用最新版本的JMeter,这样尝试编译JMeter 5.5可能会更成功?