您可以将作为 Maven 项目或 Maven 归档的模块添加至 EAR 项目。
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.7</version>
<configuration>
<version>6</version>
<modules>
<webModule>
<groupId>sample</groupId>
<artifactId>webapp</artifactId>
<!-- More configuration can be set here -->
</webModule>
</modules>
</configuration>
</plugin>