zoukankan      html  css  js  c++  java
  • maven

    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 服务器的呼声就起来了。
  • 相关阅读:
    AtCoder Grand Contest 015 题解
    AtCoder Grand Contest 014 题解
    AtCoder Grand Contest 013 题解
    AtCoder Grand Contest 012 题解
    AtCoder Grand Contest 011 题解
    AtCoder Grand Contest 010 题解
    AtCoder Grand Contest 009 题解
    NOIP2017 Day2 题解
    博客园主题备份
    多项式全家桶
  • 原文地址:https://www.cnblogs.com/rgqancy/p/14388068.html
Copyright © 2011-2022 走看看