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

filtering doesn't read filter files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.2-beta-2
    • None
    • None
    • Linux icebox 2.6.17-1.2174_FC5 #1 Tue Aug 8 15:30:55 EDT 2006 i686 athlon i386 GNU/Linux

    Description

      The assembly plugin's filtering supports POM properties like ${project.artifactId}, but not properties read from the filter file, contrary to the documentation here:

      http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html

      I've attached a sample app demonstrating the problem. You can run it by saying "mvn clean package." It tries to filter a README file with both ${project.artifactId} and ${homer}. ${homer} is defined in filter.properties like this:

      homer=woohoo

      But when you run the plugin, only ${project.artifactId} is filtered.

      Attachments

        1. filt-dist.diff
          0.8 kB
          John Franey
        2. filter-test.tar.gz
          1 kB
          Paul Jungwirth
        3. filter-test.zip
          3 kB
          Bertrand Fovez

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pjungwir Paul Jungwirth
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: