# With upgrade of gatling-maven-plugin, my jsonFile() method in my simulation class is no longer using the configFolder property defined in my pom.xml

**URL:** <https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164>\
**Category:** Gatling (Open-Source)\
**Created:** [August 2, 2023, 5:56pm UTC](https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164 "2023-08-02T17:56:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharford](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bharford](https://community.gatling.io/u/bharford)\
**Post date:** [August 2, 2023, 5:56pm UTC](https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164/1 "2023-08-02T17:56:13Z")

</div>

With upgrade of gatling-maven-plugin, my jsonFile() method in my simulation class is no longer using the configFolder property defined in my pom.xml.

Previously I was using version 3.1.1 of gatling-maven-plugin in my pom.xml and wanted to upgrade to use the latest and greatest. However, upon updating I am now seeing an error when I try to run my performance test indicating that the test cannot find my feeder file, something like:

```auto
Could not load feeder file: Resource requestdata.json not found

```

If I update the scala file to hard code the path of the feeder file I can work around this, by changing from something like this  
`val jsonFeeder = jsonFile("requestdata.json")`  
to something like this:  
`val jsonFeeder = jsonFile("performance/data/requestdata.json")`

Does anyone know why the test is not picking up my pom configuration? It looks like this and worked with previous versions:

```auto
<configuration>
  <configFolder>src/test/java/performance/data</configFolder>
</configuration>

```

Thanks

---

<div class="post-metadata">

**Author:** ![GeMi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gemi/32/939_2.png) [@GeMi](https://community.gatling.io/u/GeMi)\
**Post date:** [August 2, 2023, 6:37pm UTC](https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164/2 "2023-08-02T18:37:47Z")

</div>

I think you shoud use:

```auto
<parameter>
          <name>resourcesFolder</name>
          <alias>rsf</alias>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>Use this folder as the folder where feeders are stored.</description>
</parameter>

```

instead of:

```auto
<parameter>
          <name>configFolder</name>
          <alias>cd</alias>
          <type>java.io.File</type>
          <required>false</required>
          <editable>true</editable>
          <description>Use this folder as the configuration directory.</description>
</parameter>

```

---

<div class="post-metadata">

**Author:** ![bharford](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bharford](https://community.gatling.io/u/bharford)\
**Post date:** [August 2, 2023, 7:17pm UTC](https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164/3 "2023-08-02T19:17:42Z")

</div>

Thank you! Using resourcesFolder instead of configFolder solved the problem 🙂

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [September 1, 2023, 7:18pm UTC](https://community.gatling.io/t/with-upgrade-of-gatling-maven-plugin-my-jsonfile-method-in-my-simulation-class-is-no-longer-using-the-configfolder-property-defined-in-my-pom-xml/8164/4 "2023-09-01T19:18:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
