2011-01-14 55 views
4

我有一些困難,包括進入jar maven創建的目錄。我需要jar中的實際目錄,而不僅僅是其中的文件。 使用:我如何在Maven生成的jar文件夾(不是文件夾內容,實際文件夾)中包含一個文件夾

<resources> 
<resource> 
    <directory>etc</directory> 
</resource> 
</resources> 

只有etc目錄中的內容都包含在罐子裏,而不是實際的目錄。有沒有一個簡單的解決方案,最好不使用另一個插件? 任何反饋意見。 謝謝。

回答

6
<resources> 
<resource> 
    <directory>.</directory> 
    <includes> 
    <include>etc/**/*.*</include> 
    </includes> 
</resource> 
</resources> 
+0

該解決方案如何工作? – ecoe 2016-10-22 17:51:41

相關問題