Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.4
-
Fix Version/s: None
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
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.
This seems to be the root cause behind numerous other bugs posted in JIRA...
MNG-2288
MNG-2339MNG-2486MNG-2653It is also the cause for quite a lot of emails on the Maven Users list over the last year.