The JMeter Maven Plugin
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 419 commits behind ascheman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Maven JMeter Plugin

The Maven JMeter Plugin allows you to automate JMeter tests in Maven.

This fork use the JMeter module tree and the poms attached to the JMeter issue #49753


Add the plugin to your project

  • Add this fork's Maven repository to your project (or personal maven repo):

      	<id>Maven JMeter Plugin</id>
  • Add the plugin to the build section of your pom's project :

      			<!-- for user properites -->

I'll go over some of the options later.

Reference JMX files

This one should be simple enough, unless you don't know about JMeter. It can be a bit daunting and counterintuitive at first, but once you start to get the hang of it, it will be like second nature, and you will realize how powerful the tool can be.

Once you create your JMeter tests, you'll want to copy them to : <Project Dir>/src/test/jmeter

Copy properties files to your Maven project

  • Copy over
  • Copy <JMETER_HOME>/bin/ to <Project Dir>/src/test/jmeter.

You can make any tweaks necessary to the file you see fit.

Run the tests

mvn verify

All your tests should run in maven now!


  • JMeter user properties

In this section, you can define properties in JMeter files. For example, you could define a hostname in your JMeter test like this: ${__P(someVariableName, localhost)

Then, in your pom.xml, you can define that variable like so:


This has the same effect as using -J on the command line, as described here (search for section 2.4.7).

  • Java properties

If you have to set specific Java properties such as SSL certificates parameters, you can put it like:


This has the same effect as using -D on the command line, as described here (search for section 2.4.7).

  • JMeter log level

If you are facing a problem in JMeter execution, you may want to use this option to make JMeter more verbose


Default value is "INFO".

  • Proxy options

If you use the plugin behind a proxy, you will have to set :


You should now have all you need to run maven-jmeter-plugin.


  1. Fork it.
  2. Create a branch (git checkout -b my_plugin)
  3. Commit your changes (git commit -am "Added feature")
  4. Push to the branch (git push origin my_plugin)
  5. Create an [Issue][1] with a link to your branch
  6. Enjoy a refreshing Diet Coke and wait