首页 > 编程语言 > 详细

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

时间:2021-02-08 11:49:24      阅读:27      评论:0      收藏:0      [点我收藏+]

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!