I get the following error when i execute the cmd mvn clean gatling:execute.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:35)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:33)
at io.gatling.compiler.ZincCompiler.main(ZincCompiler.scala)
… 6 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 16 more
2102 [INFO] ------------------------------------------------------------------------
2103 [INFO] BUILD FAILURE
2103 [INFO] ------------------------------------------------------------------------
2103 [INFO] Total time: 1.426 s
2104 [INFO] Finished at: 2018-06-20T14:15:01-04:00
2104 [INFO] ------------------------------------------------------------------------
2105 [ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.1.1:execute (default-cli) on project performance_test: Gatling failed.: Simulations compilation failed. Process exited with an error: 255 (Exit value: 255) → [Help 1]
2105 [ERROR]
2106 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2106 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2106 [ERROR]
2106 [ERROR] For more information about the errors and possible solutions, please read the following articles:
2106 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
My pom file has
<gatling.version>2.1.2</gatling.version>
<scala-maven-plugin.version>3.2.0</scala-maven-plugin.version>
and
io.gatling gatling-maven-plugin 2.1.1 truePlease help!