I know that a spring boot application comes with embedded tomcat and in order to execute the integration tests to run on tomcat we can do one of the following before running the tests:
- run springboot app which will start embedded tomcat
- use mvn package, java -jar target/.jar to run the jar
However, I want to be able to run embedded tomcat through a maven plugin and execute the tests such that everything is executed by command:
mvn clean install
I know using cargo plugin is one of the way to deploy war to standalone tomcat. But is there a way to deploy war in embedded tomcat automatically?