Maven Plugin

The Maven plugin allows you to run Gatling test from the command line, without the bundle

Using this plugin, Gatling can be launched when building your project, for example with your favorite Continuous Integration (CI) solution.


Check out available versions on Maven Central.

Beware that milestones (M versions) are not documented for OSS users and are only released for FrontLine customers.


In your pom.xml, add:



Demo sample

You can find a sample project demoing the gatling-maven-plugin in Gatling’s Github organization.

You can also use the gatling-highcharts-maven-archetype to bootstrap your project.


Directly running maven goal

You can directly launch the gatling-maven-plugin with the test goal:

mvn gatling:test

The gatling-maven-plugin will take care of compiling your code.

Running from maven lifecycle

If you want to have the gatling-maven-plugin during maven’s phases lifecycle, eg because you want it to be triggered with mvn verify, you must explicitly configure an execution block:


The test goal is bound by default to the integration-test phase


The plugin supports many configuration options, eg:


Use mvn gatling:help -Ddetail=true -Dgoal=test to print the description of all the available configuration options on the test goal. Use mvn gatling:help -Ddetail=true -Dgoal=recorder to print the description of all the available configuration options on the recorder goal.

Includes/Excludes filters

When running multiple simulations, you can control which simulations will be triggers with the includes and excludes filters. Those use the ant pattern syntax and are matched against class names. Also note that those filters are only applied against the classes that were compiled from sources in the project the plugin is set.

  <!--   ...  -->

Working Along with scala-maven-plugin

By default, the gatling-maven-plugin takes care of compiling your Scala code, so you can directly run mvn gatling:test.

Then, for some reason, you might want to have the scala-maven-plugin take care of compiling.

Make sure to properly configure it, in particular set testSourceDirectory to point to the directory that contains your Gatling classes, typically:


Then, you should disable the Gatling compiler so you don’t compile twice:


Overriding the logback.xml file

You can either have a logback-test.xml that has precedence over the embedded logback.xml file, or add a JVM option -Dlogback.configurationFile=myFilePath.


If you’re interested in contributing, you can find the gatling-maven-plugin sources on Github.

Edit this page on GitHub