I have post 2 essay in my blog:
[JMeter Ant build]: http://howtesting.blogspot.com/2013/07/jmeter-ant-build.html
[JMeter Maven Tutorial]: http://howtesting.blogspot.com/2013/07/jmeter-maven-tutorial-version-181.html
Because Document of JMeter is very poor, If you like to make pom.xml, you should read source code of JMeter to understand better to create script.
So I like to use External Ant Script from a Maven Build for a Project.
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>ant-script-ex</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skipTests>false</skipTests>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>id.validate</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<exec
dir="D:/apache-jmeter/jmeter/extras"
executable="C:/apache-ant-1.7.1/bin/ant.bat"
failonerror="true">
<arg line="-Dtest=script run report" />
</exec>
</tasks>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-ant-tasks</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|
Command to run pom.xml
Mvn validate
|
HoaLe
相关推荐
jmeter-maven-plugin, JMeter Maven 插件 #JMeter Maven 插件 提供在构建过程中运行JMeter测试的能力的Maven 插件有关更改信息,请参阅变更日志 。这个插件需要 1.8 或者更高版本,自 2.2.0 #Basic 用法将插
xjar-maven-plugin 项目相关jar包。包括xjar-maven-plugin-4.0.2.jar loadkitv1.0.1.jar xjar-4.0.2.jar
jmeter-maven-plugin-it jmeter-maven-plugin 的集成测试。 用于运行测试。 它包含一个pom.xml ,其中包含的完整配置。 在测试开始时,启动了一个 ,并部署了一个带有index.html的虚拟 webapp。 之后,JMeter ...
dockerfile-maven-plugin 支持 maven 直接发布项目至 docker 镜像库
Maven使用tomcat8-maven-plugin插件
maven-tomcat-plugin让maven与tomcat配合得很好。它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现...
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了
maven plugin maven plugin scm 项目管理 构建工具 antmaven plugin maven plugin scm 项目管理 构建工具 ant
修改版tomcat7-maven-plugin-2.2.jar
jmeter-analysis-maven-plugin-it jmeter-analysis-maven-plugin 的集成测试。 构建状态 Buildhive CI: 描述: 用于运行测试。 它包含一个pom.xml ,其中包含的完整配置。 运行测试时,jmeter-analysis-maven-...
mybatis-plus-generator-maven-plugin-v1.0.0依赖的pom.xml,用于mybatis-plus-generator-maven-plugin-1.0.0.jar本地仓库上传时依赖使用
JMeter Maven插件 一个Maven插件,可以在您的...则仍可以使用以下命令调用插件(前提是您的项目中有有效的pom.xml): mvn com.lazerycode.jmeter:jmeter-maven-plugin:configure com.lazerycode.jmeter:jmeter-mave
maven的scala编译包
fronted-maven-plugin node npm angular cli spring boot整合;fronted-maven-plugin node npm angular cli spring boot整合
maven-maven-plugin-1.4.jar
maven-plugin-parameter-documenter-2.0.jar
直接离线安装eclipse中的maven插件,在你的eclipse安装根目录下创建两个文件夹:links,myplugins(文件夹名字可以自定义),所在路径D:\eclipse。将下载下来的maven插件放到myplugins下。载links目录下创建一个...
为了在项目中快捷方便的代码生成,将mybatis-plus-generator封装为了一个maven的插件`mybatis-plus-generator-maven-plugin。使用文档参考:https://blog.csdn.net/xiweiller/article/details/103072165
Jenkins maven-plugin
yuicompressor-maven-plugin, 用于压缩 (Minify/Ofuscate/Aggregate) Javascript文件和使用 YUI 压缩器的CSS文件的Maven 插件 [[Flattr this git repo] ( http://api.flattr.com/button/flattr-badge-large.png)]...