mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-14 04:31:38 +08:00
jar包打包时不将依赖打入其中,减少jar包大小
This commit is contained in:
@@ -326,6 +326,32 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.5.12</version>
|
||||
|
||||
<!--
|
||||
以下是将 jar 包中 BOOT-INF/lib 中的依赖 jar 包排除
|
||||
refer: https://mp.weixin.qq.com/s/xPRNlIT9Ac4STKzMRyUhqQ
|
||||
|
||||
[Tips] 如果希望将完整依赖打包到 jar 包中,请注释掉下面
|
||||
<configuration> 和 <executions> 两个标签
|
||||
-->
|
||||
<!-- start -->
|
||||
<configuration>
|
||||
<layout>ZIP</layout>
|
||||
<includes>
|
||||
<include>
|
||||
<groupId>nothing</groupId>
|
||||
<artifactId>nothing</artifactId>
|
||||
</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<!-- end -->
|
||||
</plugin>
|
||||
|
||||
<!-- 拉姆达表达式需要支持 Java 8 语法 -->
|
||||
|
Reference in New Issue
Block a user