'How make 1 war from two modules on java?

My project have 2 java modules with maven.

Structure project

Project
  Module1
    .....
    pom.xml
  Module2
    .....
    pom.xml
...
pom.xml

How make one war from two moules



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source