Commit b62efd8ca3295be10928e9c78f3d85df91d4d036
1 parent
7a85f860
Add spring-boot-maven-plugin to POM for repackage support and include system-scoped dependencies
Showing
1 changed file
with
17 additions
and
0 deletions
pom.xml
| @@ -343,6 +343,23 @@ | @@ -343,6 +343,23 @@ | ||
| 343 | <encoding>${project.build.sourceEncoding}</encoding> | 343 | <encoding>${project.build.sourceEncoding}</encoding> |
| 344 | </configuration> | 344 | </configuration> |
| 345 | </plugin> | 345 | </plugin> |
| 346 | + <!-- spring-boot-maven-plugin --> | ||
| 347 | + <plugin> | ||
| 348 | + <groupId>org.springframework.boot</groupId> | ||
| 349 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 350 | + <version>${spring.boot.version}</version> | ||
| 351 | + <configuration> | ||
| 352 | + <!-- 包含system scope的依赖 --> | ||
| 353 | + <includeSystemScope>true</includeSystemScope> | ||
| 354 | + </configuration> | ||
| 355 | + <executions> | ||
| 356 | + <execution> | ||
| 357 | + <goals> | ||
| 358 | + <goal>repackage</goal> | ||
| 359 | + </goals> | ||
| 360 | + </execution> | ||
| 361 | + </executions> | ||
| 362 | + </plugin> | ||
| 346 | 363 | ||
| 347 | </plugins> | 364 | </plugins> |
| 348 | </pluginManagement> | 365 | </pluginManagement> |