我如何建立Jmeter.jar [英] How do I build Jmeter.jar

查看:143
本文介绍了我如何建立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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆