Open PontusPih opened 1 year ago
Thanks for your report. Yeah the idea of "caching" (e.g. not re-run the plugin if the git has not changed) makes this bug a very tricky thing...will take a look.
Since the impact is quite mild, an improved error message might be an alternative to an solution.
I added some extra code to check for this case, but it turns out this is a bit trickier than expected.
If you for example first dump the properties as xml-file and then switch to properties the properties loading process will just happily load the XML as properties object.
Potential options:
Describe the bug (required)
It seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails.
Tell us about your plugin configuration (required)
Tell us about the Plugin version used (required)
6.0.0
Tell us about the Maven version used (required)
Steps to Reproduce (required)
Are there any stacktraces or any error messages? (required)
WARNING You may NOT want to paste all the output that is produced with
verbose
publicly, since it MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
No response
Context (optional)
There is an easy work arround: Just delete the generated properties file before generating it again in a different format.