How to use maven to unpack resource folder when .jar is ran : <p>I have a project that was written entirely independent of Maven, and now that we need to build a distributable .jar, we can't get the resource files packed in the .jar correctly.</p>

<p>The resource files are basically a bunch of .csv files that the user needs to have already setup, but can modify in the future.</p>

<p>I want the program to run like so:</p>

<ol>
<li><p>Launch program.jar</p></li>
<li><p>Reads the resource files in the resource folder, but if it doesn't exist, make the files/folder.</p></li>
<li><p>Program runs, calls resource files</p></li>
<li><p>Program ends, users are free to modify .csv files.</p></li>
</ol>

<p>We've tried including the resource files (in another directory) in the list of dependencies when the program is built, but it doesn't work when an outside user runs it. The code references the filepath multiple times (C:\commonfolder\resources\alltheCSVfiles)</p>

<p>I'm using java JDK 10.0.01, and intelliJ</p>
