title: Spring Boot Maven Plugin moving files to the BOOT-INF folder in the Jar file
body: <p>Using Maven I am trying to include some license and copyright files in the top level of my spring boot jar. Those files MUST be at the top level to pass our company's review tooling.</p>
  
  <p>I have included the files as follows </p>
  
  <pre><code>        &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;resources&gt;
            &lt;resource&gt;
              &lt;directory&gt;${project.basedir}/..&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;includes&gt;
                &lt;include&gt;HERE_NOTICE&lt;/include&gt;
                &lt;include&gt;LICENSE&lt;/include&gt;
              &lt;/includes&gt;
            &lt;/resource&gt;
  </code></pre>
  
  <p>Notice I have specified no targetPath (which should default to the root level). However when I create the jar (via mvn clean install) and look inside the jar the files are located in the "BOOT-INF" directory</p>
  
  <pre><code>     0 Fri Mar 15 14:40:20 EDT 2019 META-INF/
     615 Fri Mar 15 14:40:20 EDT 2019 META-INF/MANIFEST.MF
       0 Fri Mar 15 14:40:20 EDT 2019 BOOT-INF/
       0 Fri Mar 15 14:40:20 EDT 2019 BOOT-INF/classes/
     519 Fri Mar 15 14:40:16 EDT 2019 BOOT-INF/classes/LICENSE
   12143 Fri Mar 15 14:40:16 EDT 2019 BOOT-INF/classes/HERE_NOTICE
  </code></pre>
  
  <p>My spring-boot-maven-plugin is configured as follows</p>
  
  <pre><code>   &lt;plugin&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;repackage&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
              &lt;mainClass&gt;${start-class}&lt;/mainClass&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Is there something I can configure to keep those files at the top?</p>