Java – how to merge wars into one?

In our company, we have several different modules built as separate wars

Can I automate this process? For example, it should merge web XML, calculate each war dependency, and copy files, such as JSP and Class, etc By the way, we use maven, but we can't find a solution to this problem

Solution

The risks mentioned by djna and chssply76 are given. You can achieve this by using the superposition with Maven war plugin This will require you to separate the servlet mapping to ensure that you don't have any URL conflicts, etc., but it may be a trick

Basically, you create a module with multiple war dependencies and use the plug-in to merge them into a new module

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>