Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-385

Filtering replaces tokens it should not be replacing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-3
    • 2.2-beta-5
    • None
    • None
    • Maven 2.0.9

    Description

      What is described below is attached as an example that duplicates this

      When filtering is turned on and a token ends with .url then very strange things happen

      The assembly descriptor uses

         <files>
            <file>
               <source>${basedir}/src/config/xml/applicationContext.xml</source>
               <outputDirectory>xml</outputDirectory>
               <filtered>true</filtered>
            </file>
         </files>

      The file being filtered contains:

      <beans>
      	<bean id="ThisIsATest">
                      <property name="wapURLMessage" value="${wap.url.message}"/>
                      <property name="wapURL" value="${wap.url}"/>
                      <property name="vanityURLMessage" value="${vanity.url.message}"/>
                      <property name="vanityURL" value="${vanity.url}"/>
      	</bean>
      </beans>

      After the assembly is run the file contains:

      <beans>
      	<bean id="ThisIsATest">
                      <property name="wapURLMessage" value="${wap.url.message}"/>
                      <property name="wapURL" value="This is a not a URL but demonstrates the BUG/test1"/>
                      <property name="vanityURLMessage" value="${vanity.url.message}"/>
                      <property name="vanityURL" value="This is a not a URL but demonstrates the BUG/test1"/>
      	</bean>
      </beans>

      The string This is a not a URL but demonstrates the BUG comes from the url tag defined in parent pom
      The string test1 is the artifactId

      Attachments

        1. component.zip
          2 kB
          Robert Bracewell

        Issue Links

          Activity

            People

              elpunzalan Edwin Punzalan
              rbracewell Robert Bracewell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: