# Gatling Maven plugin executions with multiple scenarios results in error

**URL:** <https://community.gatling.io/t/gatling-maven-plugin-executions-with-multiple-scenarios-results-in-error/3634>\
**Category:** Gatling (Open-Source)\
**Created:** [March 27, 2017, 8:26am UTC](https://community.gatling.io/t/gatling-maven-plugin-executions-with-multiple-scenarios-results-in-error/3634 "2017-03-27T08:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Moll](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Daniel\_Moll](https://community.gatling.io/u/Daniel_Moll)\
**Post date:** [March 27, 2017, 8:26am UTC](https://community.gatling.io/t/gatling-maven-plugin-executions-with-multiple-scenarios-results-in-error/3634/1 "2017-03-27T08:26:03Z")

</div>

Hi,

I'm trying to run two simulation classes sequentially with Gatling Maven plugin version 2.2.0 and Gatling version 2.2.2, using executions:

\<executions\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<id\>simulation-1\</id\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goal\>integration-test\</goal\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<simulationClass\>com.gatling.Simulation1\</simulationClass\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<id\>simulation-2\</id\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goal\>integration-test\</goal\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<simulationClass\>com.gatling.Simulation2\</simulationClass\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</execution\>  
\</executions\>

This Maven fails with a an error: Gatling failed. More than 1 simulation to run, need to specify one, or enable runMultipleSimulations

I tried the following configuration, but this results in the same error.

\<executions\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<id\>simulation-1\</id\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goal\>integration-test\</goal\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<runMultipleSimulations\>true\</runMultipleSimulations\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<includes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<param\>com.gatling.Simulation1\</param\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</includes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<excludes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<param\>com.gatling.Simulation2\</param\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</excludes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<execution\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<id\>simulation-2\</id\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<goal\>integration-test\</goal\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</goals\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<runMultipleSimulations\>true\</runMultipleSimulations\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<includes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<param\>com.gatling.Simulation2\</param\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</includes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<excludes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<param\>com.gatling.Simulation1\</param\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</excludes\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</configuration\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</execution\>  
\</executions\>

Can anyone help me out getting rid of the error message?

Cheers

Daniel

---

<div class="post-metadata">

**Author:** ![Maksym\_Max](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Maksym\_Max](https://community.gatling.io/u/Maksym_Max)\
**Post date:** [June 19, 2017, 5:20pm UTC](https://community.gatling.io/t/gatling-maven-plugin-executions-with-multiple-scenarios-results-in-error/3634/2 "2017-06-19T17:20:44Z")

</div>

The same problem
