HELP: Unable to build gattling project (1.3.5)

Hi there

I am new to Gattling/Scala and I ended up trying to get my development envionment going. (GitHub - gatling/gatling: Modern Load Testing as Code)

I am using Eclipse Indigo on Windows, installed the Scala IDE Plugin, Maven Integration Eclipse Plugin and Maven Integration for Scala Plugin as mentioned on the site. I also imported the projects for gattling and the gattling-highcharts.

However when I do a ‘mvn clean install’ I run into failing error on gatling-core:

C:\dev\gatling>mvn clean install
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gatling-parent
[INFO] gatling-core
[INFO] gatling-jdbc
[INFO] gatling-redis
[INFO] gatling-http
[INFO] gatling-charts
[INFO] gatling-metrics
[INFO] gatling-app
[INFO] gatling-recorder
[INFO] gatling-bundle
[INFO] gatling-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gatling-parent 1.3.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ gatling-parent —
[INFO]
[INFO] — maven-license-plugin:1.10.b1:format (default) @ gatling-parent —
[INFO] Updating license headers…
[WARNING] Property ‘strictCheck’ is not enabled. Please consider adding true in your pom.xml file.
[WARNING] See Google Code Archive - Long-term storage for Google Code Project Hosting. for more information.
[WARNING] Unknown file extension: C:\dev\gatling\README.md
[WARNING] Unknown file extension: C:\dev\gatling.gitignore
[INFO]
[INFO] >>> maven-source-plugin:2.2:jar (attach-sources) @ gatling-parent >>>
[INFO]
[INFO] <<< maven-source-plugin:2.2:jar (attach-sources) @ gatling-parent <<<
[INFO]
[INFO] — maven-source-plugin:2.2:jar (attach-sources) @ gatling-parent —
[INFO]
[INFO] — maven-install-plugin:2.3.1:install (default-install) @ gatling-parent —
[INFO] Installing C:\dev\gatling\pom.xml to C:\Users\gllo.m2\repository\com\excilys\ebi\gatling\gatling-parent\1.3.4\gatling-parent-1.3.4.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gatling-core 1.3.4
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom (8 KB at 31.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.jar (32 KB at 622.5 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/com/typesafe/config/0.6.0/config-0.6.0.pom
Downloading: http://repo.maven.apache.org/maven2/com/typesafe/config/0.6.0/config-0.6.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/typesafe/config/0.6.0/config-0.6.0.pom (2 KB at 4.5 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.pom
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.pom (6 KB at 45.9 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.pom
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.pom (2 KB at 4.4 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.pom
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.pom (6 KB at 43.7 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.pom
Downloading: http://repo.maven.apache.org/maven2/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.pom
Downloaded: http://repo.maven.apache.org/maven2/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.pom (2 KB at 3.5 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/jodd/jodd/3.3.8/jodd-3.3.8.pom
Downloading: http://repo.maven.apache.org/maven2/org/jodd/jodd/3.3.8/jodd-3.3.8.pom
Downloaded: http://repo.maven.apache.org/maven2/org/jodd/jodd/3.3.8/jodd-3.3.8.pom (2 KB at 4.4 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/ow2/asm/asm/4.0/asm-4.0.pom
Downloading: http://repo.maven.apache.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.pom (2 KB at 32.0 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom
Downloading: http://repo.maven.apache.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom (6 KB at 82.5 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/ow2/ow2/1.3/ow2-1.3.pom
Downloading: http://repo.maven.apache.org/maven2/org/ow2/ow2/1.3/ow2-1.3.pom
Downloaded: http://repo.maven.apache.org/maven2/org/ow2/ow2/1.3/ow2-1.3.pom (10 KB at 189.5 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.pom
Downloading: http://repo.maven.apache.org/maven2/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.pom
Downloaded: http://repo.maven.apache.org/maven2/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.pom (4
KB at 8.9 KB/sec)
Downloading: http://repository.excilys.com/content/groups/public/com/typesafe/akka/akka-actor/2.0.3/akka-actor-2.0.3.jar
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.jar
Downloading: http://repository.excilys.com/content/groups/public/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.jar
Downloading: http://repository.excilys.com/content/groups/public/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.jar
Downloading: http://repository.excilys.com/content/groups/public/org/jodd/jodd/3.3.8/jodd-3.3.8.jar
Downloading: http://repository.excilys.com/content/groups/public/com/typesafe/config/0.6.0/config-0.6.0.jar
Downloading: http://repository.excilys.com/content/groups/public/org/ow2/asm/asm/4.0/asm-4.0.jar
Downloading: http://repository.excilys.com/content/groups/public/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.jar
Downloaded: http://repository.excilys.com/content/groups/public/com/typesafe/akka/akka-actor/2.0.3/akka-actor-2.0.3.jar (1673 KB at 99.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.jar
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.jar
Downloading: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar
Downloading: http://repo.maven.apache.org/maven2/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.jar
Downloading: http://repo.maven.apache.org/maven2/org/jodd/jodd/3.3.8/jodd-3.3.8.jar
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.jar (202 KB at 1243.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/com/typesafe/config/0.6.0/config-0.6.0.jar
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.jar (900 KB at 3343.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.jar
Downloaded: http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar (34 KB at 110.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.jar
Downloaded: http://repo.maven.apache.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.jar (45 KB at 832.3 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/jodd/jodd-wot/3.3.8/jodd-wot-3.3.8.jar (619 KB at 1283.5 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/jodd/jodd/3.3.8/jodd-3.3.8.jar (577 KB at 1161.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/com/typesafe/config/0.6.0/config-0.6.0.jar (182 KB at 420.7 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/specs2/specs2_2.9.2/1.12.2/specs2_2.9.2-1.12.2.jar (6074 KB at 4475.3 KB/sec)
[INFO]
[INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ gatling-core —
[INFO] Deleting C:\dev\gatling\gatling-core\target
[INFO]
[INFO] — scala-maven-plugin:3.1.0:add-source (default) @ gatling-core —
[INFO]
[INFO] — maven-license-plugin:1.10.b1:format (default) @ gatling-core —
[INFO] Updating license headers…
[WARNING] Property ‘strictCheck’ is not enabled. Please consider adding true in your pom.xml file.
[WARNING] See Google Code Archive - Long-term storage for Google Code Project Hosting. for more information.
[WARNING] Unknown file extension: C:\dev\gatling\gatling-core\src\main\resources\gatling-defaults.conf
[WARNING] Unknown file extension: C:\dev\gatling\gatling-core\src\main\resources\META-INF\LICENCE
[INFO]
[INFO] — maven-resources-plugin:2.5:resources (default-resources) @ gatling-core —
[debug] execute contextualize
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ gatling-core —
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.9.1/plexus-compiler-api-1.9.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.9.1/plexus-compiler-api-1.9.1.pom (867 B at 15.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/1.9.1/plexus-compiler-1.9.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/1.9.1/plexus-compiler-1.9.1.pom (4 KB at 87.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom (3 KB at 75.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.9.1/plexus-compiler-manager-1.9.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.9.1/plexus-compiler-manager-1.9.1.pom (692 B at 11.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.9.1/plexus-compiler-javac-1.9.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.9.1/plexus-compiler-javac-1.9.1.pom (688 B at 12.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/1.9.1/plexus-compilers-1.9.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/1.9.1/plexus-compilers-1.9.1.pom (2 KB at 21.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.9.1/plexus-compiler-api-1.9.1.jar
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.9.1/plexus-compiler-javac-1.9.1.jar
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.9.1/plexus-compiler-manager-1.9.1.jar
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.9.1/plexus-compiler-manager-1.9.1.jar (5 KB at 71.8 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.9.1/plexus-compiler-api-1.9.1.jar (21 KB at 251.7 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.9.1/plexus-compiler-javac-1.9.1.jar (14 KB at 150.3 KB/sec)
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — scala-maven-plugin:3.1.0:compile (default) @ gatling-core —
[INFO] C:\dev\gatling\gatling-core\src\main\scala:-1: info: compiling
[INFO] Compiling 97 source files to C:\dev\gatling\gatling-core\target\classes at 1354044834473
[WARNING] warning: there were 2 deprecation warnings; re-run with -deprecation for details
[WARNING] one warning found
[INFO] prepare-compile in 0 s
[INFO] compile in 26 s
[INFO]
[INFO] — maven-resources-plugin:2.5:testResources (default-testResources) @ gatling-core —
[debug] execute contextualize
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ gatling-core —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — scala-maven-plugin:3.1.0:testCompile (default) @ gatling-core —
[INFO] C:\dev\gatling\gatling-core\src\test\scala:-1: info: compiling
[INFO] Compiling 14 source files to C:\dev\gatling\gatling-core\target\test-classes at 1354044861498
[INFO] prepare-compile in 0 s
[INFO] compile in 25 s
[INFO]
[INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ gatling-core —
[INFO] Surefire report directory: C:\dev\gatling\gatling-core\target\surefire-reports

mvn_clean_install.txt (34.2 KB)

Hi,

Did you somehow edit the src/test/resources/gatling-core-1.2.1.pom file, even just re-saving it with a different encoding (other than original UTF-8)?
I can really see no reason for this test to fail.

Stéphane

I was able to build now. I honestly not sure why. I ended up resolving dependency issues within eclipse and build the project over command line. Once it worked, building on command line also worked. A bit strange but I am able to build the project. Now I just have to get to using it. Thanks for your prompt response.

Whoops. . I’ve mistaken. I still can’t mvn clean install for the ‘gattling project’ on command line. I can “Build Project” in eclipse.

I was able to do so for the archetype generated projected. I didn’t monkey with the pom.xml file. Hmmm…

For now I’ll work off of building in eclipse and working on a demo, created recorded scripts and modify them. Some time later I may have to dig into the gatling project.

Just to make sure: you don’t have to checkout the gatling projects if you just want to use the maven archetype.

Regarding the test that fails on your machine, could you please send the gatling-core-1.2.1.pom file located in gatling-core in src/test/resources, please?

Cheers,

Stéphane