I'm attempting to re-load at runtime a Maven dependency. The reason for this is I have a set of dependencies that load their own configuration, each of these dependencies can overwrite each others configuration depending on how they are loaded. I can view the loaded configuration via a method call : getConfig()
. I want to determine at runtime how loading each dependency alters the configuration returned by getConfig()
, therefore re-load at runtime a Maven dependency.
In Maven, how can I dynamically build a property value at runtime? references building a property at runtime, also can lookup dependencies at runtime : Maven - lookup dependencies at runtime ut I'm unable to find docs relating to reloading a dependency at runtime