Maven Deploy To Multiple Tomcat Servers

前端 未结 5 1860
轻奢々
轻奢々 2020-12-23 00:18

What is the most minimal example of deploying a war to multiple tomcat servers using maven that can be written?

I\'ve tried the following URLs and asked the mailing

5条回答
  •  天涯浪人
    2020-12-23 00:48

    Maybe the "most minimal" solution isn't minimal at all. If you have problems with doing that in maven itself, try using ant: create two different deploy tasks (one per server) and another task which has them as dependencies. There are several examples how to deploy to a tomcat server using ant. Just google them. Done this, you need to integrate the new ant tasks into maven which isn't difficult at all using the antrun plugin.

提交回复
热议问题