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

Custom filter list does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1-alpha-1
    • 2.1-alpha-2
    • None
    • None

    Description

      When specifying filters on the plugin (not inside <project>) like this:

      <configuration>
        <resource>
          <directory>polopoly-resources/config_ptest</directory>
          <targetPath>WEB-INF/config</targetPath>
        </resource>
        <warName>ptest</warName>
        <workDirectory>target/ptest-work</workDirectory>
        <filters>
          <filter>src/main/filters/filter.ptest.properties</filter>
        </filters>
      <webResources>
        <resource>
          <directory>src/main/resources</directory>
          <targetPath>WEB-INF/classes</targetPath>
          <filtering>true</filtering>
        </resource>
      </webResources>
      

      the list of filters is ignored. If I move the <filters> list to inside the <project> they work as expected. The documentation explicitly say that this is possible under the section "Filtering webResources".

      Attachments

        Activity

          People

            olamy Olivier Lamy
            trygvis@inamo.no Trygve Laugstøl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: