之前因为搭了一个Maven多模块的项目,然后在打成war包方面遇到了极大的困难,下面就分享一下自己的心路历程:
下面的事最终正确的build的配置 天知道为了这个付出了多大的代价 哈哈..
<build>
<finalName>infomanagement</finalName><!--打包的最终名称-->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments> <!-- spring-boot:run 中文乱码解决 -->
<fork>true</fork><!-- fork is enable,用于明确表示编译版本配置的可用 -->
<mainClass>com.info.ManagementApplication</mainClass>
<layout>WAR</layout>
</configuration>
<executions>
<execution>
<goals>