Maven WAR Plugin
  1. Maven WAR Plugin
  2. MWAR-143

War Overlays and resources filtering

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-alpha-1
    • Fix Version/s: 2.1-alpha-2
    • Component/s: None
    • Labels:
      None
    • Environment:
      maven 2.0.7
    • Number of attachments :
      2

      Description

      I have multiple web applications who share common resources.
      So I use the war overlays mechanism.

      All seems ok except for common properties files that I want to filter when creating the web applications.
      For instance (see war-overlays-filter.zip in attachment):
      My war-common war
      war-common.war

      – WEB-INF\classes\filter.properties (which contains for instance title.main=Prototype $ {pom.name}

      )

      I would like to create the war-filter-overlay web application
      war-filter-overlay.war

      – WEB-INF\classes\filter.properties (which contains the filtering property title.main=Prototype war-filter-overlay)

      As suggested by Olivier Lamy it tried this configuration

       
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1-alpha-2-SNAPSHOT</version>
                <!--version>2.1-alpha-1</version-->
                <!--version>2.0.2</version-->
                <configuration>
                  <overlays>
                    <overlay>
                      <groupId>debug.war</groupId>
                      <artifactId>common-overlay</artifactId>
                      <!--targetPath>filter</targetPath-->
                      <filtered>true</filtered>
                    </overlay>
                  </overlays>
              </configuration>
            </plugin>
      

      Unfortunately it's not working.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Olivier Lamy
            Reporter:
            Rémy Sanlaville
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: