# maven plugin + gatling.conf

**URL:** <https://community.gatling.io/t/maven-plugin-gatling-conf/931>\
**Category:** Gatling (Open-Source)\
**Created:** [April 7, 2014, 5:06pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931 "2014-04-07T17:06:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_Laroche](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@Francois\_Laroche](https://community.gatling.io/u/Francois_Laroche)\
**Post date:** [April 7, 2014, 5:06pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/1 "2014-04-07T17:06:27Z")

</div>

Hi everyone,

I’m trying to configure gatling when running with maven (mvn gatling:execute).

I have, in src/test/resources a file called gatling.conf

But whatever I put inside, it doesn’t seem to be used (I tried to put like letters in numeric values to test).

How can we get it to work ?

François

---

<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:** [April 7, 2014, 5:22pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/2 "2014-04-07T17:22:18Z")

</div>

Hi,

Which version do you use?

---

<div class="post-metadata">

**Author:** ![Francois\_Laroche](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@Francois\_Laroche](https://community.gatling.io/u/Francois_Laroche)\
**Post date:** [April 8, 2014, 4:59am UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/3 "2014-04-08T04:59:35Z")

</div>

I’m using the 2.0 M3a

---

<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:** [April 8, 2014, 7:44am UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/4 "2014-04-08T07:44:55Z")

</div>

Are you sure you uncommented the properties you are trying to override. You have to remove the #.

---

<div class="post-metadata">

**Author:** ![Barun\_Mandal](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Barun\_Mandal](https://community.gatling.io/u/Barun_Mandal)\
**Post date:** [July 16, 2021, 1:12pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/5 "2021-07-16T13:12:35Z")

</div>

I am having the same issue. I want to send metrics to graphite, so I updated the data.writers, graphite.host and port in gatling.conf under src/test/resources and I am running a test with command mvn gatling:test -Dgatling.simulationClass=simulations. -Dlogback.configurationFile=src/test/resources/logback-debug.xml but unfortunately the updated gatling.conf file is not being used and no data sent to graphite. I tested updating the gatling.conf in a gatling standalone project and running with the ./gatling/bin/gatling.sh , which works fine as expected. @Stéphane Landelle any idea on this please

---

<div class="post-metadata">

**Author:** ![Barun\_Mandal](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Barun\_Mandal](https://community.gatling.io/u/Barun_Mandal)\
**Post date:** [July 16, 2021, 3:08pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/6 "2021-07-16T15:08:03Z")

</div>

I got it working using mvn gatling:test **-Dgatling.conf.file=src/test/resources/gatling.conf**. But may be this is a bug that the src/test/resources/gatling.conf is not being effective, where it should work as per the document [https://gatling.io/docs/gatling/reference/current/general/configuration/](https://gatling.io/docs/gatling/reference/current/general/configuration/)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 18, 2021, 2:56pm UTC](https://community.gatling.io/t/maven-plugin-gatling-conf/931/7 "2021-07-18T14:56:55Z")

</div>

Just like the regular “gatling.conf”, custom conf file is loaded **from the classloader**.

**-Dgatling.conf.file=gatling-custom.conf**.

where **gatling-custom.conf** is stored in **src/test/resources**
