Automatic deployment of a Java application on a remote Tomcat

I want to be able to automatically deploy a Java application on a tomcat server.

Current situation:

  • Java project under development at Eclipse
  • The Tomcat server is running on another computer, serving the WAR file of this project

My goal: Easy compilation and deployment of the project on a remote Tomcat server. I don't mind if it is a console command / script or using the Eclipse GUI.

Is it possible? If so, how? (If there are features that need to be changed in my setup, feel free to give me tips for a more suitable setup)

Update

Yes, I use Maven.

+8
java eclipse tomcat deployment
source share
3 answers

If you use Maven, I suggest using the Cargo plugin , which supports the entire version of Tomcat and has the ability to deploy to local and remote servers .

+8
source share

If you prefer not to use Maven or the Cargo plugin, you can simply call the Tomcat manager manager URL . Under the covers, Cargo basically does the same. Tomcat also provides Ant tasks to wrap manager commands. Using Ant tasks will allow you to call them in Eclipse without a plugin.

+7
source share

I believe that Cargo can do what you want in a common mod (but I have not tried it personally) http://cargo.codehaus.org/Tomcat+6.x

In addition, Tomcat has an administrative webapp that can accept a WAR by loading, but I will first look at Cargo.

+3
source share

All Articles