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

POM interpolator treats ${pom.something} like ${something} and prefers system properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.4
    • None
    • None

    Description

      The POM interpolator (RegexBasedModelInterpolator) removes all leading "pom.", "project." and "env." portions of an expression before evaluating it. then searching for values happens in the following order: system properties, project properties, pom bean properties.

      An example: Although ${pom.version} is more specific than ${version}, version wins. That's the problem in MNGECLIPSE-20.

      IMHO the interpolation strategy should be changed.

      Attachments

        Issue Links

          Activity

            People

              kenneyw kenneyw
              dschulz Daniel Schulz
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: