How can I include a folder in the jar produced by Maven (not the content of the folder, the actual folder)
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 t开发者_如何学JAVAhis, ideally without using another plugin? Any feedback is appreciated. Thanks.
<resources>
<resource>
<directory>.</directory>
<includes>
<include>etc/**/*.*</include>
</includes>
</resource>
</resources>
精彩评论