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)
Yes, i use Maven.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With