Gatling Maven Plugin - JVM args inheritance

Hi

I’m using the gatling-maven-plugin (2.0.0-M2) and I’m facing an inheritance issue with JVM args

Here’s my problem.

  • In my parent pom.xml, I have the following pluginManagement declaration :

dev

io.gatling

gatling-maven-plugin

-Dfiddler=true

true

In my global settings.xml file there is a “dev” profile which enables this default configuration every time I run the plugin on my local machine.
Note the “fiddler” JVM arg which allows to define a fiddler proxy to my httpConfig.

  • In the gatling child project, the pom.xml contains :

injectUsers



io.gatling
gatling-maven-plugin


CreateAccounts
test

execute



-DnbUsers=2

xxx.MySimulation






Note the other JVM arg “nbUsers”.
I want to combine these 2 JVM arg with Maven inheritance easiness… but the child plugin execution is overriding the parent JVM args configuration : no fiddler argument.

Is there a fix in another plugin version ? Or another way to do that…

Thank you !

Aurélien.

Mmmm. Maybe some maven expert would correct me, but afaik, that’s not a Gatling maven plugin bug, just something you can’t do with maven.
Our plugin just use the configuration value it gets passed by maven, it doesn’t resolve anything by itself.

So, my call is: not possible.
Maybe you’d better ask on the maven mailing list.

Ok thanks !