Alp
Alp

Reputation: 29749

Automatic Deployment of Java application on Remote Tomcat

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

Current situation:

My goal: An easy possibility to compile and deploy the project into the remote Tomcat server. I don't mind if that would be a console command/script or by using the Eclipse GUI.

Is that possible? If yes, how? (If there are possibilites, which need changes on my setup, feel free to give me advice for a better suiting setup)

Update

Yes, i use Maven.

Upvotes: 8

Views: 12643

Answers (3)

Benjamin Muschko
Benjamin Muschko

Reputation: 33476

If you prefer not to go with Maven or the Cargo plugin you can simply invoke the Tomcat manager deploy URL. Under the covers Cargo is basically doing the same thing. Tomcat also provides Ant tasks to wrap the manager commands. Using the Ant tasks would enable you to invoke them in Eclipse without a plugin.

Upvotes: 7

Slava Semushin
Slava Semushin

Reputation: 15214

If you use Maven I will suggest to use Cargo plugin which supports all Tomcat's version and have ability to deploy to local and remote servers.

Upvotes: 8

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

Also Tomcat has an administrative webapp that can accept WAR's by upload, but I would look at Cargo first.

Upvotes: 3

Related Questions