Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing properties not overriden for goal read-project-properties #111

Open
Weihnachtswurst opened this issue Oct 18, 2023 · 1 comment

Comments

@Weihnachtswurst
Copy link

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

@slawekjaranowski
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants