# \[Newbie\] Can't find Run as -\> Scala Application in Maven Gatling Project

**URL:** <https://community.gatling.io/t/newbie-cant-find-run-as-scala-application-in-maven-gatling-project/2854>\
**Category:** Gatling (Open-Source)\
**Created:** [March 1, 2016, 5:16pm UTC](https://community.gatling.io/t/newbie-cant-find-run-as-scala-application-in-maven-gatling-project/2854 "2016-03-01T17:16:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miller\_C](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Miller\_C](https://community.gatling.io/u/Miller_C)\
**Post date:** [March 1, 2016, 5:16pm UTC](https://community.gatling.io/t/newbie-cant-find-run-as-scala-application-in-maven-gatling-project/2854/1 "2016-03-01T17:16:27Z")

</div>

I am a newbie to Gatling. I have created a Maven Gatling project in Eclipse. I would like to run Gatling recorder from eclipse, but I can’t really figure out how to do that…even after reading all the documentation and searching around in past few days, I can’t find a clear instruction on how to do it… So I need a help from here.

Below steps is what I have done so far,

- Win 7
- Eclipse version : Mars 4.5
- Installed Scala IDE 4.3
- Installed Maven Integration for Scala IDE 0.5.1
- Installed Scala 2.11.7
- Added Maven Remote Catalog in Eclipse for Gatling Archetype by using : [http://repository.excilys.com/content/groups/public/archetype-catalog.xml](http://repository.excilys.com/content/groups/public/archetype-catalog.xml)
- Replaced the pom.xml base on ([http://search.maven.org/#artifactdetails|io.gatling.highcharts|gatling-highcharts-maven-archetype|2.2.0-M2|maven-archetype](http://search.maven.org/#artifactdetails%7Cio.gatling.highcharts%7Cgatling-highcharts-maven-archetype%7C2.2.0-M2%7Cmaven-archetype))  
to update Gatling Archetype from 2.0.0.M3 to 2.2.0.M-2
- And replace the Engine.scala, IDEPathHelper.scala, Recorder.scala files from this site ([https://github.com/gatling/gatling-maven/tree/gatling-maven-parent-2.1.1/gatling-highcharts-maven-archetype/src/main/scala](https://github.com/gatling/gatling-maven/tree/gatling-maven-parent-2.1.1/gatling-highcharts-maven-archetype/src/main/scala))

after done these steps, I have tried to right click on scr/test/scala/Recorder.scala → Run As → (Run Configuration), there is no “Scala Application” option as I have seen many posts said to do. I know it’s either I have missed any steps or it will be done in different ways that I don’t know about it.

So please advise me how to trigger the Recorder UI from where I am now, and further settings need to be done. I have been googling and searching from youtube, however, I can’t find any tutorial that is for basic setting for newbie like me to start with.

Big thanks in advance~

---

<div class="post-metadata">

**Author:** ![Miller\_C](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Miller\_C](https://community.gatling.io/u/Miller_C)\
**Post date:** [March 14, 2016, 4:56pm UTC](https://community.gatling.io/t/newbie-cant-find-run-as-scala-application-in-maven-gatling-project/2854/2 "2016-03-14T16:56:12Z")

</div>

Never mind, I have found the solution of replacing the right pom.xml for me. Then it’s working fine.

---

<div class="post-metadata">

**Author:** ![morten\_bjoernsvik](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@morten\_bjoernsvik](https://community.gatling.io/u/morten_bjoernsvik)\
**Post date:** [March 15, 2016, 9:59am UTC](https://community.gatling.io/t/newbie-cant-find-run-as-scala-application-in-maven-gatling-project/2854/3 "2016-03-15T09:59:47Z")

</div>

Hi

Recommend running maven from the command line, after you have generated the pom from the archetype, set your own artifactid and package.  
Just add a path to the maven included with your IDE, or install it yourselves and set MAVEN\_HOME  
(on ubuntu I use ‘update-alternatives --config mvn’ to manage several version of maven installed, like for java jvms)

mvn archetype:generate -DarchetypeGroupId=io.gatling.highcharts   
-DarchetypeArtifactId=gatling-highcharts-maven-archetype -DinteractiveMode=false   
-DarchetypeVersion=2.1.7 -DgroupId=io.gatling.highcharts   
-DartifactId=gatlingtest -Dpackage=org.test

Then I add maven-surefire-plugin and skip unit-tests to run gatling in the verify lifecycle

mvn clean verify

This is very recommented if you need to run them in a CI environment like Jenkins, where you  
are not guided by your IDE.

Below is my entire build which is the only think I change in the pom generated above.

src/test/scala org.apache.maven.plugins maven-surefire-plugin 2.19.1 true io.gatling gatling-maven-plugin ${gatling.version} src/test/resources src/test/resources/data target/gatling/results src/test/resources/bodies src/test/scala integration-test execute
