在运行mvn test后报如下错误,请查看本地的jdk版本,需要在1.7(versiion 51) / 1.8(version 52.)
[ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.2.0:execute (default) on project XXXX: Execution default of goal io.gatling:gatling-maven-plugin:2.2.0:execute failed: Unable to load the mojo 'execute' in the plugin 'io.gatling:gatling-maven-plugin:2.2.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: io/gatling/mojo/GatlingMojo : Unsupported major.minor version 52.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>io.gatling:gatling-maven-plugin:2.2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/root/.m2/repository/io/gatling/gatling-maven-plugin/2.2.0/gatling-maven-plugin-2.2.0.jar
[ERROR] urls[1] = file:/root/.m2/repository/io/gatling/gatling-compiler/2.2.0/gatling-compiler-2.2.0.jar
[ERROR] urls[2] = file:/root/.m2/repository/org/scala-lang/scala-library/2.10.6/scala-library-2.10.6.jar
[ERROR] urls[3] = file:/root/.m2/repository/org/scala-lang/scala-reflect/2.10.6/scala-reflect-2.10.6.jar
[ERROR] urls[4] = file:/root/.m2/repository/com/typesafe/config/1.3.0/config-1.3.0.jar
[ERROR] urls[5] = file:/root/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar
[ERROR] urls[6] = file:/root/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar
[ERROR] urls[7] = file:/root/.m2/repository/com/typesafe/zinc/zinc/0.3.9/zinc-0.3.9.jar
[ERROR] urls[8] = file:/root/.m2/repository/com/typesafe/sbt/incremental-compiler/0.13.9/incremental-compiler-0.13.9.jar
[ERROR] urls[9] = file:/root/.m2/repository/com/typesafe/sbt/sbt-interface/0.13.9/sbt-interface-0.13.9.jar
[ERROR] urls[10] = file:/root/.m2/repository/com/typesafe/sbt/compiler-interface/0.13.9/compiler-interface-0.13.9-sources.jar
[ERROR] urls[11] = file:/root/.m2/repository/com/github/scopt/scopt_2.10/3.4.0/scopt_2.10-3.4.0.jar
[ERROR] urls[12] = file:/root/.m2/repository/org/apache/commons/commons-exec/1.2/commons-exec-1.2.jar
[ERROR] urls[13] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar