1新建父级项目
2,新建子模块
选择父级项目右键,新建maven 模块
3,新建子模块会报错,需要新增webapp/WEB-INF/web.xml
4,parent pm.xml 添加:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>