properties-maven-plugin icon indicating copy to clipboard operation
properties-maven-plugin copied to clipboard

Existing properties not overriden for goal read-project-properties

Open Weihnachtswurst opened this issue 1 year ago • 1 comments

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

Weihnachtswurst avatar Oct 18 '23 08:10 Weihnachtswurst

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

slawekjaranowski avatar Oct 20 '23 18:10 slawekjaranowski