# Building/compiling gatling scripts without scala-maven-plugin

**URL:** <https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929>\
**Category:** Gatling (Open-Source)\
**Created:** [April 10, 2019, 6:21am UTC](https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929 "2019-04-10T06:21:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [April 10, 2019, 6:21am UTC](https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929/1 "2019-04-10T06:21:24Z")

</div>

The scala-maven-plugin reference has been removed in [https://github.com/gatling/gatling-maven-plugin-demo](https://github.com/gatling/gatling-maven-plugin-demo)

I previously used  
mvn scala:testCompile  
to build my scala sources but this is not possible any more without the plugin.

I did not manage to only build the sources with  
mvn gatling:test

Maybe someone can guide me towards the needed compile target that I could not find.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [April 10, 2019, 6:44am UTC](https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929/2 "2019-04-10T06:44:50Z")

</div>

scala-maven-plugin has been removed from the demo because it’s not necessary there as the gatling-maven-plugin takes care of compiling what’s in src/test/scala.  
This demo works just fine when running mvn gatling:test.  
If you have a more complex setup, it’s up to you to add the scala-maven-plugin to your own project.

---

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [April 10, 2019, 10:47am UTC](https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929/3 "2019-04-10T10:47:44Z")

</div>

I guess I should’ve phrased the question differently.

Is there something in the gatling: namespace that allows me to compile the test sources but not subsequently start/run the scenarios?

Kind regards and thank you for the fast response  
Paul

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [April 10, 2019, 11:05am UTC](https://community.gatling.io/t/building-compiling-gatling-scripts-without-scala-maven-plugin/4929/4 "2019-04-10T11:05:25Z")

</div>

Then, answer is no.
