SpringBoot 第三方jar 打包 打不进去

    技术2022-07-14  79

    在webapp->lib 下的jar包 在导出jar或者war包的时候 打不进去。

    处理方式在此记录:

    当 引入的jar包  scope 属性为system的时候

    <dependency>             <groupId>**</groupId>             <artifactId>**</artifactId>             <version>1.0</version>             <scope>system</scope>             <systemPath>${lib.path}/**.jar</systemPath>         </dependency>

    pom文件 这样设置

     <build>         <plugins>             <plugin>                 <groupId>org.springframework.boot</groupId>                 <artifactId>spring-boot-maven-plugin</artifactId>                 <configuration>                     <includeSystemScope>true</includeSystemScope>                 </configuration>             </plugin>             <plugin>                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-surefire-plugin</artifactId>                 <configuration>                     <skip>true</skip>                     <testFailureIgnore>true</testFailureIgnore>                 </configuration>             </plugin>         </plugins>     <resources>  

     

    Processed: 0.022, SQL: 9