Maven 1.x War Plugin

war:war-resources should add overwrite=true (or configurable) flag to ant:copy task

Details

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

Description

The default behavior of ant:copy is to not overwrite files if an newer file exists. However, when war dependencies are included and merged (see MPWAR-41), this means that resources of this project might be overriden by resources from an included war file (which is counterintuitive: project resources should override all included files if they overlap)

The line to change is

<ant:copy todir="${maven.war.webapp.dir}" preservelastmodified="true" overwrite="true">

Issue Links

Activity

Hide
Stephane Nicoll added a comment -

Added property maven.war.resources.overwrite to control is resources overwrites the ones in the generated webapp directory.

Default to true.

Show
Stephane Nicoll added a comment - Added property maven.war.resources.overwrite to control is resources overwrites the ones in the generated webapp directory. Default to true.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: