Document precedence for filter property locations
-------------------------------------------------
Key: MNG-3063
URL: http://jira.codehaus.org/browse/MNG-3063
Project: Maven 2
Issue Type: Improvement
Components: Documentation: Guides
Affects Versions: Documentation
Reporter: Florian Kirchmeir
Priority: Trivial
According to the "Getting Started Guide", section "How do I filter resource
files?", properties may be defined at different locations:
[quote]
"The property can be one of the values defined in your pom.xml, a value defined
in the user's settings.xml, a property defined in an external properties file,
or a system property."
[/quote]
However, the guide doesn't state explicitely the order in which these locations
are evaluated.
So, if I have different values for the same property specified in my pom.xml
and an external properties file, which value will I get in my filtered resource?
According to my own findings, the different locations seem to be already listed
in order of precedence above (with lowest precedence for the pom.xml and
highest for system properties). Would be nice to see that stated explicitely,
to avoid trial and error testing! ;-)
Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira