properties-maven-plugin
properties-maven-plugin copied to clipboard
Existing properties not overriden for goal read-project-properties
Summary
properties-maven-plugin in version 1.2.0 with the goal read-project-properties does not override existing properties even if override is explicitly set to true
Environment
- Plugin version 1.2.0
- Windows 10 + maven 3.6.2 or Docker/Linux + maven 3.9.4
Example to reproduce
https://github.com/Weihnachtswurst/properties-maven-plugin-bug-override-no-effect
I afraid that working as specified ...
When properties exist during project load - it will be resolved - as you can see by executing: mvn help:effective-pom
properties-maven-plugin try to change properties in project after project is loaded ....
When properties doesn't exist during project load it will be unresolved and pass to ant task as string ...
There is a proposition to add similar feature to Maven - which can be done before project load https://issues.apache.org/jira/browse/MNG-7914