# Specifying simulation in maven command line

**URL:** <https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823>\
**Category:** Gatling (Open-Source)\
**Created:** [February 18, 2014, 10:50am UTC](https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823 "2014-02-18T10:50:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Srivastav](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Raj\_Srivastav](https://community.gatling.io/u/Raj_Srivastav)\
**Post date:** [February 18, 2014, 10:50am UTC](https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823/1 "2014-02-18T10:50:55Z")

</div>

Hi,  
Earlier I was using ABCD in my pom.xml file.  
I ran “mvn test” in the command line and everything worked fine.

Now, I want to specify class in command line rather than in pom.  
I gave the command as,  
mvn test -Ds=“ABCD”  
but this doesn’t work.  
It says, More than 1 simulation to run, need to specify one

What is the correct format to mention the class?

Note - My class is directly available in src/test/scala without any other package declaration.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [February 18, 2014, 11:16am UTC](https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823/2 "2014-02-18T11:16:23Z")

</div>

Use the full property name. The “s” alias wasn’t working because it’s a reserved maven alias for the settings.xml file location.

See [https://github.com/excilys/gatling/issues/1037](https://github.com/excilys/gatling/issues/1037)

Depending on the version you use, the full property name is either “gatling.simulation” or “gatling.simulationClass”.

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Raj\_Srivastav](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Raj\_Srivastav](https://community.gatling.io/u/Raj_Srivastav)\
**Post date:** [February 18, 2014, 11:19am UTC](https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823/3 "2014-02-18T11:19:45Z")

</div>

Thanks, it works in an awesome manner.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [February 18, 2014, 11:21am UTC](https://community.gatling.io/t/specifying-simulation-in-maven-command-line/823/4 "2014-02-18T11:21:17Z")

</div>

Glad to hear 🙂  
Have fun
