1

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?

membersound
  • 81,582
  • 193
  • 585
  • 1,120

1 Answers1

1

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?

Aurélien Thieriot
  • 5,853
  • 2
  • 24
  • 25