Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3817

Property inheritance when filtering with multiple profiles is gone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.9
    • 2.0.9
    • Profiles
    • None

    Description

      pom.xml:
      <build>
      <filters>
      <filter>default.properties</filter>
      </filters>
      </build>
      <profiles>
      <profile>
      <id>first</id>
      <build>
      <filters>
      <filter>first.properties</filter>
      </filters>
      </build>
      </profile>
      <profile>
      <id>second</id>
      <build>
      <filters>
      <filter>second.properties</filter>
      </filters>
      </build>
      ...
      default.properties:
      prop=

      first.properties:
      prop=first_value

      second.properties:
      other_prop=${prop}

      since 2.0.9 the value of

      other_prop

      is not replaced and is written as ${prop}, instead of inherit the value 'first_value', when executing

      mvn -Pfirst,second process-resources

      This breaks existing configurations badly and I do not see a workaround whithout losing the ability to configure in more than one dimension, which makes mvn 2.0.9 quite unsuable for project requirements in real life.

      Attachments

        1. MNG-3817.zip
          2 kB
          Martin Buechler

        Activity

          People

            Unassigned Unassigned
            mdmd Martin Buechler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: