maven cannot set a property available to your application from the runtime.
Instead, you can use maven to update the properties file in your codebase at build time, which can then be read by your application at run time. Different property values can be set based on the profile, which allows your application to have different values as desired.
, ( maven).