|
@@ -25,5 +25,30 @@
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>2.1.1.RELEASE</version>
|
|
|
+ <configuration>
|
|
|
+ <includeSystemScope>true</includeSystemScope>
|
|
|
+ <!-- 如果没有该配置,devtools不会生效: 打包时关闭 -->
|
|
|
+ <fork>false</fork>
|
|
|
+ <!-- 避免中文乱码 -->
|
|
|
+ <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
+ </configuration>
|
|
|
+ <!-- 允许生成可运行jar -->
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ </build>
|
|
|
|
|
|
</project>
|