membersound
membersound

Reputation: 86925

How to auto deploy on remote tomcat by maven?

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

Answers (1)

Aurélien Thieriot
Aurélien Thieriot

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

Related Questions