Gatling version: 3.14.3
Gatling flavor: java
Gatling build tool: maven
Hi;
I am new to Gatling, I was following the instruction of Create your first Java-based simulation to run the first simulation, But I got Failed to execute goal io.gatling:gatling-maven-plugin:4.20.0:test No simulations to run
Can you please advise how to solve the issue?
Thanks
The error message is very clear: you don’t have any concrete Java class extending io.gatling.javaapi.core.Simulation
in your classpath, so Gatling doesn’t have anything to run.
Are you saying that you have just cloned the gatling-maven-plugin-demo-java
repository and haven’t changed anything, such as removing the BasicSimulation.java
file ?
If so, I’m afraid I can’t help: it works out-of-the-box for everyone else.
yes, I just cloned the repo, only changed the maven-compiler-plugin to java 21
maven-compiler-plugin
21
% java -version
openjdk version "21.0.7" 2025-04-15 LTS
OpenJDK Runtime Environment Zulu21.42+19-CA (build 21.0.7+6-LTS)
OpenJDK 64-Bit Server VM Zulu21.42+19-CA (build 21.0.7+6-LTS, mixed mode, sharing)
% mvn -version
Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
Maven home: /Users/slandelle/Documents/dev/build/maven/maven
Java version: 21.0.7, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "15.3.1", arch: "aarch64", family: "mac"
% mvn gatling:test
[INFO] Scanning for projects...
[INFO]
[INFO] -----------< io.gatling.demo:gatling-maven-plugin-demo-java >-----------
[INFO] Building gatling-maven-plugin-demo-java 3.14.3
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> gatling:4.20.0:test (default-cli) > test-compile @ gatling-maven-plugin-demo-java >>>
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ gatling-maven-plugin-demo-java ---
[INFO] skip non existing resourceDirectory /Users/slandelle/Documents/dev/projects/gatling-03-samples/gatling-maven-plugin-demo-java/src/main/resources
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ gatling-maven-plugin-demo-java ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ gatling-maven-plugin-demo-java ---
[INFO] Copying 2 resources from src/test/resources to target/test-classes
[INFO]
[INFO] --- compiler:3.14.0:testCompile (default-testCompile) @ gatling-maven-plugin-demo-java ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] <<< gatling:4.20.0:test (default-cli) < test-compile @ gatling-maven-plugin-demo-java <<<
[INFO]
[INFO]
[INFO] --- gatling:4.20.0:test (default-cli) @ gatling-maven-plugin-demo-java ---
[INFO] Running simulation example.BasicSimulation.
Simulation example.BasicSimulation started...
...
Thank you very much! It worked