Automatic Deployment of Java application on Remote Tomcat

前端 未结 3 1686
执笔经年
执笔经年 2021-02-15 18:39

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

Current situation:

  • A Java project is under developement in Eclipse
相关标签:
3条回答
  • 2021-02-15 19:07

    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.

    0 讨论(0)
  • 2021-02-15 19:09

    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.

    0 讨论(0)
  • 2021-02-15 19:13

    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.

    0 讨论(0)
提交回复
热议问题