Maven 1.x War Plugin
  1. Maven 1.x War Plugin
  2. MPWAR-52

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
    • 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
          Stéphane 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
          Stéphane 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

            • Assignee:
              Stéphane Nicoll
              Reporter:
              Nathan Coast
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: