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

WebResource not filtered with system properties.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.1-alpha-2
    • None
    • None
    • java 5.0, Windows XP

    Description

      When filtering a resource:

                <webResources>        
                  <resource>
                    <directory>${basedir}/src/main/resources/</directory>
                    <filtering>true</filtering>
                    <includes>
                       <include>index.jsp</include>
                    </includes>                  
                  </resource>
                </webResources>

      The index.jsp contains:

      	<tr><td>java version</td><td>${java.version}</td></tr>
      	<tr><td>Project</td><td>${pom.name}</td></tr>
      	<tr><td>Version</td><td>${pom.version}</td></tr>

      After mvn clean install the filtered index.jsp looks like:

      	<tr><td>java version</td><td>1.0.0.SNAPSHOT</td></tr>
      	<tr><td>Project</td><td>FrieslandBank TMS TNS WebApp</td></tr>
      	<tr><td>Version</td><td>1.0.0.SNAPSHOT</td></tr>

      The value java.version is filtered to the version of the pom and not the system property. The same goes for os.name which is translated to pom.name.

      Attachments

        1. patch-CompositeMapa.txt
          1 kB
          KlaasJan Elzinga
        2. patch-junit-test.txt
          1 kB
          KlaasJan Elzinga

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              klaasjanelzinga KlaasJan Elzinga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: