I'm having some difficulty including a directory into the jar maven is creating. I need the actual directory in the jar, not just the files in it. By using:
<resources>
 <resource>
  <directory>etc</directory>
 </resource>
</resources>
only the contents of the etc directory are included in the jar, not the actual directory. Is there a simple solution for this, ideally without using another plugin? Any feedback is appreciated. Thanks.
<resources>
 <resource>
  <directory>.</directory>
  <includes>
    <include>etc/**/*.*</include>
  </includes>
 </resource>
</resources>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With