|
|
|
@ -35,6 +35,25 @@ |
|
|
|
</compilerArgs> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
|
|
|
|
<!-- 核心新增:Spring Boot打包插件(生成可运行的胖包) --> |
|
|
|
<plugin> |
|
|
|
<groupId>org.springframework.boot</groupId> |
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
|
|
<version>${spring.boot.version}</version> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<goals> |
|
|
|
<!-- 关键:重新打包为可运行的JAR(包含所有依赖) --> |
|
|
|
<goal>repackage</goal> |
|
|
|
</goals> |
|
|
|
</execution> |
|
|
|
</executions> |
|
|
|
<configuration> |
|
|
|
<!-- 必须指定Spring Boot启动类(替换为你的实际启动类全路径) --> |
|
|
|
<mainClass>com.link.TestApplication</mainClass> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|
</build> |
|
|
|
|
|
|
|
|