title: Java Executable jar logback-spring.xml does not see the logback.properties file
body: <p>The issue is that the <code>logback.xml</code> file does not see the <code>logback.properties</code> file.</p>
  
  <p>I am trying to run an executable jar (we'll call it <code>foo.jar</code>) which is built using Maven. When trying to run foo.jar it fails because it cannot locate the <code>logback.properties</code> file. This file does exist within the <code>foo.jar</code> and is a sibling file to the <code>logback.xml</code> file.</p>
  
  <p>I have tried manually moving the <code>logback.properties</code> file around within the foo.jar to no avail. But, I discovered if I put a copy of the <code>logback.properties</code> file outside of the jar in the directory where the jar is then it sees the properties file and starts up.</p>
  
  <p>Can someone explain how to get foo.jar to look inside itself for the properties file?</p>
  
  <p>Example: lets say that I have <code>logback.xml</code> and <code>logback.properties</code> file both located in the foo.jar under the path of '<code>foo/bar</code>'.</p>
  
  <p>What must I do to have it locate the properties file?</p>
  
  <p>Side note: It is a Spring Boot project, which I honestly know nothing about Spring so I don't know if that is the obstacle that is causing the grief.</p>
  
  <p>My <code>logback.xml</code> file refers to the <code>logback.properties</code> file by</p>
  
  <pre><code>&lt;property file="logback.properties" /&gt;
  </code></pre>