SpringBoot Maven项目引入本地jar包
转载参考 https://www.cnblogs.com/chywx/p/11563318.html
https://blog.csdn.net/zyt_1272999061/article/details/100160248?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_title~default-1.no_search_link&spm=1001.2101.3001.4242
1.项目根目录建lib文件夹放需要引入的jar包
2.pom.xml 文件中引入
参考例子:
<dependency>
<groupId>aspose-imaging</groupId>
<artifactId>aspose-imaging</artifactId>
<version>18.9</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/aspose-imaging-18.9.jar</systemPath>
</dependency>
3.打包–在build中添加下面代码,打包会自动打到jar包的lib里面
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>