For multi-module maven project built, first of all deal with the parent file to perform clean -> install operation, then the need for the implementation of clean-packaged items -> package operation
Packaged need to add the following in the pom file
1、<packaging>war</packaging>
2, <! - by adding configure tomcat disposed external dependencies ->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>-->
3, <! - because there is no web.xml file, and therefore need to add plug-ins to inform maven, add to the build ->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
4, <-!. FinalName can add tags to set the war package name, not necessarily ->
<finalName>violet</finalName>