I am converting a API bundle to maven dependent bundle to automate the build and deployment. I have a requirement to add and remove the virtual hosts in proxies for different environments. For example. Test environment have default and Prod environment must have default and secure virtual hosts. I tried to add this through configuration in config.json but it could work. As config.json file converts all the values into text format and the xml tags will be parsed to corresponding characters (ex. < to <). Even escape characters does not work as each value is parsed to normal text. Is there way to change the xml elements using maven configuration.
Solved! Go to Solution.
I just verified that you can have the same Virtual host defined twice in the proxy.xml definition without error. This means you could have multiple elements defined as "default" and for your prod instance change the first entry to "secure" via config.json. This would achieve your goal - though it is not an ideal solution.