I have a web application (JSF), which uses two web services (REST). Pending the achievement of these web services, I use mocks (WIREMOCK). By deploying the application, I have to start both mocks calling main methods. Is there a way to group these three tasks in one task (maven plugin or other)?
- Run tomcat
- Call main method for mock server 1
- Call main method for mock server 2