title: How to access file inside maven shaded jar
body: <p>I'm using Maven Shade to make a shaded .jar file for a Jetty project. This project includes some resource files (text property files) that I'd like to read. </p>
  
  <p>How do I access the files inside the said .jar file? </p>
  
  <p>The current folder structure inside the jar when viewed from an file extraction tool is something like the following:<br>
  <code>-com
    -some 
     -domain
      -AccessFileFromHere.class
  -fileIWantToAccess.sql
  </code></p>
  
  <p>I want to access the files in the combined jar files root named <code>fileIWantToAccess.sql</code>. I want to access this file from the java class <code>AccessFileFromHere.class</code> created from <code>AccessFileFromHere.java</code>. </p>
  
  <p>The question asked here about accessing a jar file: 
  <a href="https://stackoverflow.com/questions/5171957/access-file-in-jar-file">Access file in jar file?</a><br>
  Can't be used as they are not using a shaded jar file. </p>