I am trying to use the jackson-dataformat-properties library to parse the output from maven git commit id plugin into POJOs that I can later send as json from a Spring boot REST endpoint.
One of the complications is that the property file contains dynamic key names, like "git.remote.origin.url" where the "origin" segment can be any name.
Does anyone know a way to tell jacksons JavaPropsMapper to put any key that starts with "git.remote" into a Map? It will be impossible to maintain if I have to create a POJO named Remote with setOrigin method that takes an Origin POJO. If anyone use a different name for a remote repo the parsing will fail.