title: Resources are missing from JAR file after repackage with spring boot maven plugin
body: <p>My application uses some additional files which I have inside the resource folder. When I do the regular build with Maven and package my app into JAR, I can see all my resources in case I unzip this archive. </p>
  
  <p>But when I create a docker image I use spring-boot-maven-plugin to make my JAR archive executable. For some reason <strong>my resources aren't being added to the new repacked JAR</strong>. Moreover I <strong>can not even unzip it</strong> because it is corrupted.</p>
  
  <p>Here is the way I set the repackage goal in my pom.xml:</p>
  
  <pre><code>&lt;id&gt;prod&lt;/id&gt;
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.5.3.RELEASE&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;mainClass&gt;ApplicationName&lt;/mainClass&gt;
                          &lt;executable&gt;true&lt;/executable&gt;
                          &lt;arguments&gt;
                              &lt;argument&gt;--spring.profiles.active=prod&lt;/argument&gt;
                          &lt;/arguments&gt;
                          &lt;!--&lt;addResources&gt;true&lt;/addResources&gt;--&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;repackage&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;!--&lt;includeSystemScope&gt;true&lt;/includeSystemScope&gt;--&gt;
                                  &lt;!--&lt;layout&gt;JAR&lt;/layout&gt;--&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
  </code></pre>
  
  <p>I want to add that when I run my image in docker it works fine <strong>but all the needed resources are missing</strong>.</p>
  
  <p>Has anyone run into the same problem? Or maybe you can suggest how to fix it.</p>