我正在使用一個簡單的項目,將webapp目錄放在標準位置(src/main/webapp)中。出於某種原因,它看起來像maven-shade-plugin不包括在最終生成的jar中 - 默認情況下它只包含工件src/main/resources。 我曾嘗試使用下面的配置,沒有運氣:配置maven-shade-plugin以包含src/main/webapp
<configuration>
<artifactSet>
<includes>
<include>*</include>
<include>*:*</include>
</includes>
</artifactSet>
</configuration>
如何做到這一點的任何建議,而不必爲src /主/ web應用程序移動到的src /主/資源/ webapp的?
謝謝。
Eugen。
據我所知這個插件是用來合併罐子在一起,而不是戰爭包。 – Farid