Maven plugin java.lang.classnotfoundexception

Hi,

I downloaded the sample maven project and tried to execute it while i changed the gatling version to 1.4.1 in pom.xml. when I try to run the sample simulation by mvn gatling:execute it gives me this error:

[INFO]
[INFO] — gatling-maven-plugin:1.4.1:execute (default-cli) @ gatling-maven-project —
java.lang.ClassNotFoundException: com.excilys.ebi.gatling.app.Gatling
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:154)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)

sorry if the question is stupid, I’m just new in to this.

Regards,
Ehsan

Have you read the wiki page? https://github.com/excilys/gatling/wiki/Maven-plugin
You have to add Gatling to the test scope.

Cheers,

Stéphane

Could you also upgrade to the latest version of Gatling and the sample project, please (note that we now host it on our own)?