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

War Overlays and resources filtering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1-alpha-1
    • 2.1-alpha-2
    • None
    • None
    • maven 2.0.7

    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.

      Attachments

        1. war-overlays-filter.zip
          2 kB
          Sanlaville Rémy
        2. reactor-war-overlay-filter.zip
          3 kB
          Sanlaville Rémy

        Activity

          People

            olamy Olivier Lamy
            sanlavre Sanlaville Rémy
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: