Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-311

Filtering of resources broken in version 2.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.5
    • filtering
    • None
    • mac os x 10.9.2, Maven 3.1.1, Maven 3.2.1

    Description

      It appears that resource filtering by version 2.4 of the maven-war-plugin is broken. In filtered resource files in the generated WAR directory by Maven, only the properties specified by the Maven build itself (ie, properties hard-coded in pom.xml) will appear in the resources, but not those specified as filters inside of the <filters> tag of <build>. However, the resources file that appear in target/classes will indeed have full filtering applied to it. This behaviour was working as of version 2.3 and earlier (as in, the app.properties file inside both the WAR and the classes directories will have filtering fully applied).

      I created a Github repo with a very simple code that can easily reproduce the bug, which reproduction steps and further description. Please check it out here: https://github.com/ecbrodie/mwp-filter-bug

      Until this bug is fixed, users like I that rely on filtering to be applied to their classpath resources are forced to use version 2.3 or earlier.

      This bug was reproduced on Mac OS X 10.9.2 using both Maven 3.1.1 and 3.2.1.

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              ecbrodie Evan Brodie
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: