Maven 1.x War Plugin

configurable overwrite of target web.xml with src web.xml

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.1
  • Fix Version/s: 1.6.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

war:war-resources

<util:available file="${maven.war.webxml}">
<ant:copy file="${maven.war.webxml}"
tofile="${webapp.build.webinf}/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

Issue Links

Activity

Hide
Stephane Nicoll added a comment -

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.

Show
Stephane Nicoll added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: