Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Fix Version/s: 1.6.2
-
Labels:None
-
Number of attachments :
Description
war:war-resources
<util:available file="$
{maven.war.webxml}"><ant:copy file="${maven.war.webxml}
"
tofile="$
/web.xml"
overwrite="true" />
</util:available>
the current plugin forces an overwrite of the web.xml if there is a source file. I am about to release the latest version of the maven tomcat plugin. The main objective of this release is to reduce the time for changes to src files to be updated within tomcat (jsps in particular). war:war-resources does the work of moving files from src to target. If the jsps are modified tomcat will recompile them, however if the web.xml is modified (timestamp) tomcat will reload the entire web application causing an unneccessary overhead. It would be extremely useful if the overwrite parameter of the web.xml were configurable with a property.
cheers
Nathan
This is done. Added property maven.war.webxml.overwrite property to control if the source web.xml overwrites the one in the generated webapp directory.