Maven. How to create .jar with local .txt files
<p>I use Intellij Idea.</p>

<p>Java-classes use <code>.txt</code> files which are placed in folder where <code>.java</code> files are situated. 
I created <code>.jar</code> file with maven and pom.xml. But there are no <code>.txt</code> in <code>.jar</code> file. 
How to add them there?</p>

<p><strong>UPDATED</strong>:</p>

<p>I have such structure <code>src/main/java/Project-name/</code> for <code>.java</code> files. And <code>src/main/resources/</code>for <code>.txt</code> files. Within <code>.java</code> files I access files as <code>../../resources/filename.xml</code> and all works fine. But .jar-files created with maven  says:</p>

<pre><code>Unable to open "../../resources/filename.xml" 
</code></pre>

<p>How correctly should I declare filenames?</p>