Reputation: 86925
I'd like to deploy a war project on a remote tomcat server on maven build. There seems to be a plugin tomcat-maven-plugin
that is capable of this.
But I also have to start a batch script prior to deployment that stops some processes and shuts the tomcat server down safely. Is it also possible to execute such a remote script by maven just before the deployment?
Upvotes: 1
Views: 853
Reputation: 5923
By default, when you push a new Jar using the remote deployment feature of Tomcat, it will gracefully restart your container.
If you need to do more than that, this is probably not a solution for you.
When you say Batch script... does it means you are deploying on a Windows server?
Upvotes: 1