Caused by: java.lang.IllegalStateException: Unable to open nested entry ‘BOOT-INF/lib/jar‘. It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file
step 1
<dependency>
<groupId>com.taobao.top</groupId>
<artifactId>taobao-sdk-java-auto</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/taobao-sdk-java-auto_1479188381469-20210204.jar</systemPath>
</dependency>
step 2
you can set ‘includeSystemScope‘ to true.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
maven - Add external library .jar to Spring boot .jar internal /lib - Stack Overflow
https://stackoverflow.com/questions/30207842/add-external-library-jar-to-spring-boot-jar-internal-lib
SpringBoot项目打成war和jar的区别_CrazySnail_x的博客-CSDN博客
https://blog.csdn.net/weixin_40910372/article/details/89515686
正好这个时候微服务的概念兴起,“ use Jar,not War ”。要求淘汰传统 Servlet 服务器的呼声就起来了。
maven - Add external library .jar to Spring boot .jar internal /lib - Stack Overflow
原文:https://www.cnblogs.com/rgqancy/p/14388068.html