如何使用Maven运行Jmeter测试?

如何使用Maven运行Jmeter测试?,maven,jmeter-maven-plugin,Maven,Jmeter Maven Plugin,有人能建议如何使用Maven运行Jmeter测试吗?这只是一个简单的jmeter脚本,通过http调用google.com,没有变量。我只想从一个简单的开始 我已经创建了maven能够识别的路径C:\Jmeterautomation\src\test\jmeter\google.jmx 我已经在这个目录C:\Jmeterautomation中创建了pom.xml 这就是pom的样子 <?xml version="1.0" encoding="UTF-8"?> <projec

有人能建议如何使用Maven运行Jmeter测试吗?这只是一个简单的jmeter脚本,通过http调用google.com,没有变量。我只想从一个简单的开始

我已经创建了maven能够识别的路径C:\Jmeterautomation\src\test\jmeter\google.jmx

我已经在这个目录C:\Jmeterautomation中创建了pom.xml

这就是pom的样子

<?xml version="1.0" encoding="UTF-8"?>
  <project xmlns="http://Maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://Maven.apache.org/POM/4.0.0 http://Maven.apache.org/xsd/Maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.adp.ds.services</groupId>
    <artifactId>01-run-with-Maven</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <build>
    <plugins>
      <plugin>
        <groupId>com.lazerycode.jmeter</groupId>
        <artifactId>jmeter-Maven-plugin</artifactId>
        <version>1.4.1</version>
       <executions>
         <execution>
           <id>jmeter-tests</id>
           <phase>verify</phase>
           <goals>
             <goal>jmeter</goal>
           </goals>
         </execution>
       </executions>
     </plugin>
    </plugins>
  </build>
  </project>

4.0.0
com.adp.ds.services
01与Maven一起跑步
1.0-快照
聚甲醛
com.lazerycode.jmeter
jmetermaven插件
1.4.1
jmeter测试
验证
性能测试
当我打开命令窗口,转到C:\Jmeterautomation并键入mvn verify时,我得到的错误是mvn未被识别为内部或外部命令

我已经下载了这个jmeter-maven-plugin-1.4.1.jar并保存在C:\jmeter\apache-jmeter-2.13\lib\ext中

我在这里做错了什么?尝试了我所知道的所有可能的方法,是否有任何一步一步的说明可以贯穿整个过程,请建议。 提前谢谢

I'm getting error mvn is not recognized as internal or external command 
请先安装maven:


这是该插件的一个非常旧的版本。请查看以获取最新版本。