Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-18

System properties and cmdline params not filtered without filter file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.2
    • 2.2
    • None
    • None

    Description

      If you have a src/main/resources/test.properties with the following content:
      param=${param}
      userhome=${user.home}

      and you define a resources section with filtering enabled for this, then running

      mvn process-resources -Dparam=PARAM

      yields a target/classes/test.properties where the properties are not filtered (i.e. the file is unchanged).

      When you define a <filters><filter>emptyfile</... and create 'emptyfile' with no content,
      the resource is properly filtered.

      Attachments

        Activity

          People

            kenneyw kenneyw
            kenney Kenney Westerhof
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: