# Converting from Maven to sbt

**URL:** <https://community.gatling.io/t/converting-from-maven-to-sbt/1844>\
**Category:** Gatling (Open-Source)\
**Created:** [December 29, 2014, 8:10pm UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844 "2014-12-29T20:10:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Zaluk](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Steven\_Zaluk](https://community.gatling.io/u/Steven_Zaluk)\
**Post date:** [December 29, 2014, 8:10pm UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/1 "2014-12-29T20:10:03Z")

</div>

I am in the process of converting from using maven to sbt but I am encountering the following exception when I run my simulations:

Caused by: sbt.ForkMain$ForkError: Could not locate feeder file; file login-users.csv doesn’t exist

That file exists in the src/test/resources/data directory and when I switch back to maven it works fine.

How do I set the following settings in my build.sbt that I have set in my maven pom file?

src/test/resources/data target/results src/test/resources/bodies src/test/scala

This is what my build.sbt looks like so far:

enablePlugins(GatlingPlugin)

organization := “[com.cliqueintelligence.com](http://com.cliqueintelligence.com)”  
name := “ci-qa-performance-tests”  
version := “1.0.0-SNAPSHOT”

scalaVersion := “2.11.4”  
scalacOptions := Seq("-encoding",  
“UTF-8”,  
“-target:jvm-1.7”,  
“-deprecation”,  
“-feature”,  
“-unchecked”)

resolvers += “Sonatype OSS Snapshots” at “[https://oss.sonatype.org/content/repositories/snapshots](https://oss.sonatype.org/content/repositories/snapshots)”

libraryDependencies += “io.gatling.highcharts” % “gatling-charts-highcharts” % “2.1.2” % “test”  
libraryDependencies += “io.gatling” % “gatling-test-framework” % “2.1.2” % “test”  
libraryDependencies += “org.apache.httpcomponents” % “httpclient” % “4.3.3”  
libraryDependencies += “commons-lang” % “commons-lang” % “2.6”

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [December 29, 2014, 8:53pm UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/2 "2014-12-29T20:53:15Z")

</div>

Hi,

This error comes from the fact that, by default, all resources are searched in src/test/resources.  
Simply move your feeder file up in src/test/resources and it’ll work 😉

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Steven\_Zaluk](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Steven\_Zaluk](https://community.gatling.io/u/Steven_Zaluk)\
**Post date:** [December 29, 2014, 11:12pm UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/3 "2014-12-29T23:12:25Z")

</div>

Thanks Pierre!

I was hoping there was a way to configure it externally without having to move the files. Instead I just reference them with the extra path parameter like so:

feed(csv(“data/login-users.csv”).circular)

Do you know if there are any plans to be able to configure this externally like you can for scalaSource and target?

–Steve

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [December 29, 2014, 11:23pm UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/4 "2014-12-29T23:23:46Z")

</div>

Well, you can always customize your build and add other resources directories to your list of resource directories :

resourceDirectories in Gatling += (resourceDirectory in Test).value / “data”

This could be done in the plugin indeed 🙂

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Steven\_Zaluk](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Steven\_Zaluk](https://community.gatling.io/u/Steven_Zaluk)\
**Post date:** [January 4, 2015, 2:15am UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/5 "2015-01-04T02:15:54Z")

</div>

Thanks Pierre!

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [January 4, 2015, 9:55am UTC](https://community.gatling.io/t/converting-from-maven-to-sbt/1844/6 "2015-01-04T09:55:37Z")

</div>

You’re welcome 🙂

Have fun with Gatling !
