title: cannot get resources folder into jar when using spring boot maven plugin
body: <p>Im trying to build an executable jar that runs with spring boot, but I cant get the spring xml from the resources folder into the jar. It looks like my outputDirectory is wrong. What is the correct way  to define it such that it is packaged within the jar? </p>
  
  <p>Here is my pom file</p>
  
  <pre><code>&lt;build&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;${basedir}/src/main/resources/my-resources&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;*xml&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/resource&gt;
      &lt;/resources&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;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;mainClass&gt;netexchange.exchange.main.ExchangeMain&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
                  &lt;outputDirectory&gt;${basedir}/target&lt;/outputDirectory&gt;
                  &lt;finalName&gt;Matcher-with-config&lt;/finalName&gt;
                  &lt;addResources&gt;true&lt;/addResources&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;repackage&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
      &lt;directory&gt;${basedir}/target&lt;/directory&gt;
  &lt;/build&gt;
  </code></pre>