I want to build a war from my project and then use that same war for multiple (customer) applications. There are some properties that need to match the final url and that exist in the war already:
cuba.webHostName = app.company.com cuba.webAppUrl = https://app.company.com/customer
Here the /customer may vary as well as the ‘app.company.com’. Is there any way to override these properties when deploying in production?
I’m using docker and do a number of overrides already to the different images but I can’t seem to override properties in the war file.
One option could be to allow for Java defines (like -Dcuba.webAppUrl=https://app.company.com/customer) and have that applied for the application but again, I do not see how to do that.