0
縮小後,我有這樣的webapp
內容:Maven的WAR插件 - 改變前端資源的位置
WEB-INF
assets
favicon
i18n
scripts
dist
index.html
//other things
凡內dist
我已經壓縮樣式,腳本等......但Maven WAR plugin
副本一切戰爭,這導致WAR包含未定義的來源。我試圖更改目錄webResources
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
packagingExcludes>WEB-INF/lib/tomcat-*.jar</packagingExcludes>
<webResources>
<resource>
<filtering>true</filtering>
<directory>src/main/webapp/dist</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
但沒有任何改變。誰能幫我這個?預先感謝您的每一個答案。