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

Filter does not process nested ${} variables

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.2
    • None
    • delimiters
    • None

    Description

      When I try filtering this under src/main/resources:
      jms.username=${${env}.jms.username}

      with this filtering strategy:
      <resources>
      <resource>
      <directory>src/main/resources</directory>
      <filtering>true</filtering>
      </resource>
      </resources>

      Setting the property (from command line, <property>, etc.) fails to properly filter the nested element:
      jms.username=${${env}.jms.username}

      For example, I'd like the filter to convert to this (using a property of -Denv=dev):
      jms.username=${dev.jms.username}

      Attachments

        1. MRESOURCES-70.zip
          3 kB
          Arnaud Heritier

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdsteele Matt Steele
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: