maven - Add external library .jar to Spring boot .jar internal /lib - Stack Overflow

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 服务器的呼声就起来了。
posted @   任国强  阅读(142)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2018-02-08 java mail session使用Properties的clone方法
2017-02-08 MyBatis自动生成Java/C#的Bean(Entity)的等价MYSQL实现函数
点击右上角即可分享
微信分享提示