Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.3.1
-
None
-
None
Description
My intention is to filter with a filter properties file and with the properties from pom.
The properties file was for the defaults
and the pom to override.
To that end, I wanted to filter with pom first, i.e. without properties file
to an intermediate place and then further with a properties file.
If a property occurs in the pom, then the first filter step yields the right value
and is not affected by the second step.
If it does not occur in the pom then only the second step, applying the properties file affects it.
Now I found out, that seemingly, even in presence of a properties file the pom affects filtering.
Fortunately, the pom seems to be applied first
so i do not need a second step.
My problem is just that I use an undocumented feature.
Also it worked a bit by accident.
I would suggest to offer a way to configure when the pom is applied, first or last,
or to document, that the pom is always applied first,
which means that it overwrites other occurance.
I feel also that this mechanism is worth being mentioned: if one and the same property occurs several times, the first occurance overwrites the ohers.
Some suggestion to improve usability is to add an example of filtering with properties file in goal copy-resouces, as it is really different from goal resources.