2012-10-19 45 views
1

webapp-cache.xml的用途是什麼?它緩存任何數據像圖像,HTMLS等.. ??我可以看到它是在Maven構建之後創建的,但是我不明白這個webapp-cache.xml的重要性。webapp-cache.xml的用途是什麼?

回答

1

Maven WAR Plugin Docs

cacheFile: 

The file containing the webapp structure cache. 
Type: java.io.File 
Since: 2.1-alpha-1 
Required: Yes 
Default: ${project.build.directory}/war/work/webapp-cache.xml 

採取的WAR插件使用此文件在創建WAR文件的過程。

+0

+1和...在maven-compiler-plugin **或** build-helper-maven-plugin **中是否存在與「cacheFile」等效的內容? – Withheld

+0

目前尚不清楚爲什麼要啓用或禁用緩存功能。 –