I have REST client/server application based on a Jetty Servlet That I deploy on Tomcat. The client and servers and two different modules.
I have also created a third module (webapp-tests) that is only responsible for launching integration tests.
I would like to deploy several instances of the "war" created by the server module by using the "Cargo" plugin, before running the tests.
Indeed, I have a configuration file located in 'WEB-INF/' that contains some settings (like MySQL connection settings, timouts, etc ...). And I would like to alter this config file within the WAR file before deploying it with Cargo, with several flavours of configuration (several MySQL versions, ..., etc)
Do you have an idea of how I can manage this.
Thanks in advance for your help, Best regards,
Raphael