title: compilation error during gatling load test
body: <p>I'm trying to write a simulation and i want to be able to run the simulation.
  I get an error while trying to $mvn gatling:execute.</p>
  
  <p>My pom has the following dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.gatling&lt;/groupId&gt;
      &lt;artifactId&gt;gatling-charts&lt;/artifactId&gt;
      &lt;version&gt;2.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.gatling&lt;/groupId&gt;
      &lt;artifactId&gt;gatling-core&lt;/artifactId&gt;
      &lt;version&gt;2.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and the following plugins:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
              &lt;artifactId&gt;scala-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;scalaVersion&gt;2.12.3&lt;/scalaVersion&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;io.gatling&lt;/groupId&gt;
              &lt;artifactId&gt;gatling-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;performanceTests&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;execute&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;simulationClass&gt;simulations.SimulationClass&lt;/simulationClass&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>This is the error that i came across:</p>
  
  <pre><code>12:50:36.313 [main][WARN ][ZincCompiler.scala:141] i.g.c.ZincCompiler$ - 
  Pruning sources from previous analysis, due to incompatible CompileSetup.
  java.lang.ClassNotFoundException: io.gatling.app.Gatling
      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)
      at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:42)
      at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
  </code></pre>
  
  <p>Included dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.gatling&lt;/groupId&gt;
      &lt;artifactId&gt;gatling-app&lt;/artifactId&gt;
      &lt;version&gt;2.2.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But now i get a new error:</p>
  
  <pre><code>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:498)
  at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
  at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
  Caused by: java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)V
  at com.github.mnogu.gatling.mqtt.protocol.MqttProtocolOptionPart.&lt;init&gt;(MqttProtocol.scala:124)
  at com.github.mnogu.gatling.mqtt.protocol.MqttProtocol$.apply(MqttProtocol.scala:24)
  at com.github.mnogu.gatling.mqtt.protocol.MqttProtocolBuilder$.apply(MqttProtocolBuilder.scala:13)
  at com.github.mnogu.gatling.mqtt.Predef$.mqtt(Predef.scala:9)
  at simulations.SimulationClass.&lt;init&gt;(SimulationClass.scala:10)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at java.lang.Class.newInstance(Class.java:442)
  at io.gatling.app.Runner.run0(Runner.scala:79)
  at io.gatling.app.Runner.run(Runner.scala:64)
  at io.gatling.app.Gatling$.start(Gatling.scala:59)
  at io.gatling.app.Gatling$.fromArgs(Gatling.scala:43)
  at io.gatling.app.Gatling$.main(Gatling.scala:35)
  at io.gatling.app.Gatling.main(Gatling.scala)
  </code></pre>
  
  <p>...</p>
  
  <p>Any leads regarding this problem would be of great help.</p>
  
  <p>Thank you</p>