frontline: Failed to validate packages: Could not collect any jar, possible wrong build command?

Hi Stéphane,

I’m trying to migrate from open source gatling version to the frontline, however I’m not able to get the simulation going. I’m compiling the simulation from source code on the frontline instance, using maven. The build command is:

mvn clean package -DskipTest

The output is:

[21:22:03,372] [INFO] ---------------------------< company:gatling >----------------------------
[21:22:03,373] [INFO] Building gatling 0.0.1
[21:22:03,374] [INFO] --------------------------------[ jar ]---------------------------------
[21:22:04,056] [INFO]
[21:22:04,081] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ gatling —
[21:22:04,180] [INFO]
[21:22:04,186] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ gatling —
[21:22:04,392] [INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[21:22:04,406] [INFO] Copying 13 resources
[21:22:04,418] [INFO]
[21:22:04,418] [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ gatling —
[21:22:04,743] [INFO] Nothing to compile - all classes are up to date
[21:22:04,743] [INFO]
[21:22:04,743] [INFO] — scala-maven-plugin:4.3.1:compile (default) @ gatling —
[21:22:05,579] [INFO] Using incremental compilation using Mixed compile order
[21:22:06,036] [INFO] Compiler bridge file: /var/frontline/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.12-1.3.2-bin_2.12.10__52.0-1.3.2_20200115T025827.jar
[21:22:07,750] [INFO] Compiling 46 Scala sources to /tmp/frontline-7417753848646064810/target/classes …
[21:22:20,075] [INFO] Done compiling.
[21:22:20,581] [INFO] compile in 15.1 s
[21:22:20,582] [INFO]
[21:22:20,583] [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ gatling —
[21:22:20,591] [INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[21:22:20,591] [INFO] skip non existing resourceDirectory /tmp/frontline-7417753848646064810/src/test/resources
[21:22:20,591] [INFO]
[21:22:20,591] [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ gatling —
[21:22:20,602] [INFO] No sources to compile
[21:22:20,603] [INFO]
[21:22:20,604] [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ gatling —
[21:22:20,688] [INFO] No tests to run.
[21:22:20,702] [INFO]
[21:22:20,702] [INFO] — maven-jar-plugin:3.2.0:jar (default-jar) @ gatling —
[21:22:21,031] [INFO] Building jar: /tmp/frontline-7417753848646064810/target/gatling-0.0.1.jar
[21:22:21,123] [INFO] ------------------------------------------------------------------------
[21:22:21,124] [INFO] BUILD SUCCESS
[21:22:21,127] [INFO] ------------------------------------------------------------------------
[21:22:21,127] [INFO] Total time: 17.852 s
[21:22:21,127] [INFO] Finished at: 2020-02-25T20:22:21Z
[21:22:21,127] [INFO] ------------------------------------------------------------------------
[21:22:21,160] Compilation completed successfully.
[21:22:21,164] Collected jar ()
[21:22:21,164] Failed to validate packages: Could not collect any jar, possible wrong build command?. Terminating instances.

Could you advise? What’s it expecting? Is there a debug output or a more detailed documentation than those pdfs?

Thank you very much,

peter

Hi Peter,

I’d say you haven’t configured the frontline-maven-plugin in your pom.xml.
Please check the doc or the sample you can download from FrontLine’s web ui.

You should have a block like this in your tag:

io.gatling.frontline frontline-maven-plugin ${frontline-maven-plugin.version} package

Cheers,

Thank you, this was it! I was following https://github.com/gatling/gatling-maven-plugin-demo and somehow missed the frontline-maven-plugin.

peter

Great! Yes, the gatling-maven-plugin-demo is for pure Gatling OSS, not FrontLine.

Cheers,