What is the order of overwrite Maven properties in pom.xml and settings.xml?
java, maven
Solution
Based on the documentation in my opinion it is clear which one has precedence over the other (excerpt of the docs):
If a profile is active from settings, its values will override any equivalently ID'd profiles in a POM or profiles.xml file.
The profiles.xml does not exist anymore in Maven 3 only in Maven 2.2.1 it is supported but shouldn't be used.
Problem
today I observed that the maven proprties defined in `settings.xml` overwrite the one in `pom.xml`. Because it is only a observation, I am not sure if this is totally correct. So I am looked for the reference or some article but I find no concrete statement about the behaviour of overwriting properties defined with the same name in `settings.xml` and `pom.xml`. Maybe someone can provide a link to the reference part (that I may overlooked) or the a reliable article/blog?