This seems like an open-ended question in 2017. A search for "java deploy script" first points to this question, as well as to Ant and several other unrelated articles.
The project I'm working on at the time of this writing has 6-7 JAR files that we host in the tomcat lib / folder, and 20-30 small WAR files that we host in webapps /. We have a deployment script that downloads from the Bamboo server and extends the archive containing everything but not usable during development. And deploying it all manually is a nightmare.
So, I started my own Python script, which initially deployed several JARs and WARS for the tomcat instance.
Now it is a cross-platform deployment tool (tested on Windows and Mac), as well as an agnostic language and server, configured through a JSON file. He can:
Since you can run commands on a remote server, you can do a lot of things with Shell commands (we use them to start / stop tomcat, wait for it to start / stop, delete logs, etc.).
The deployment script is on GitHub .
riverhorse
source share