我如何建立Jmeter.jar [英] How do I build Jmeter.jar
问题描述
我在JMeter上使用SSL页面时遇到麻烦,我以前在此处.
I have trouble using SSL pages with JMeter, which I previously posted here.
我从JMeter官方小组听说,问题可能出在JMeter Maven插件使用的jmeter.jar
,因为它的版本是2.2,而JMeter的当前版本是2.4.
I heard from the JMeter official group that problem might lie in jmeter.jar
, which is used by the JMeter Maven plug-in, as its version is 2.2 whilst the current version of JMeter is 2.4.
我在JMeter目录中看到了ApacheJMeter.jar
,但是我认为它与jmeter.jar
不同,因为ApacheJMeter.jar
的类似乎比jmeter.jar
少.
I had a look at my JMeter directory and saw ApacheJMeter.jar
, but I don't think it is the same as jmeter.jar
, since ApacheJMeter.jar
seems to have much fewer classes than jmeter.jar
.
我可以从哪里获得jmeter.jar
文件,或者如何自己构建它?
Where could I get the jmeter.jar
file from, or how could I build it myself?
推荐答案
最新版本已对其进行了修复,现在可以从中央maven存储库中获得该版本,因此,您不再需要在POM中指定存储库即可使用它,所有这些现在需要的是:
It's fixed in the latest version which is now available from the central maven repository so you no longer need to specify a repository in your POM to use it, all that is required now is:
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>
它将拉下Apache发布的最新的JMeter 2.6工件,这些工件也在maven中央存储库中(因此,您不再需要担心寻找JMeter工件和/或自行构建它们).
It will pull down the latest JMeter 2.6 artifacts that have been released by Apache and are in the maven central repo as well (So you no longer need to worry about finding JMeter artifacts and/or building them yourself).
请注意,GroupID和ArtifactID已更改.
Note that the GroupID and ArtifactID have changed.
项目网站为 http://jmeter.lazerycode.com
这篇关于我如何建立Jmeter.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!