ClassNotFoundException (MainWithArgsInFile) in gatling-maven-plugin 4.1.4

Hello there :wave:

There seems to be a problem with the gatling-maven-plugin in its version 4.1.4: when running mvn gatling:test, the tests execution is failing with the following error message:

Error: Could not find or load main class io.gatling.plugin.util.MainWithArgsInFile
Caused by: java.lang.ClassNotFoundException: io.gatling.plugin.util.MainWithArgsInFile

This can be reproduced easily using the gatling-maven-plugin-demo-scala project: using its current version with gatling-maven-plugin 4.1.4, when running mvn gatling:test, you’ll encounter the execution error.

If you revert to gatling-maven-plugin version 4.1.3, the same command will run fine and you won’t encounter the ClassNotFound error.

I hope this report gives you enough details to reproduce the issue on your side, if not please let me know and I’ll be happy to share more information with you.

Thanks a lot for your attention, and have a great day!


Thanks a lot for reporting! Please upgrade to gatling-maven-plugin 4.1.5.

1 Like