1.本地包使用
项目根目录创建lib文件夹,将jar拷贝到目录下,修改pom.xml,添加依赖
<dependency>
<groupId>xxx.xxx</groupId>
<artifactId>xxxxx</artifactId>
<version>0.0.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/xxxx-0.0.1.jar</systemPath>
</dependency>
2.打包注意事项
打包插件中加入configuration配置:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
本文介绍了如何在项目中通过系统路径引入本地jar包,并详细说明了在Spring Boot打包时配置includeSystemScope的重要性。
1317

被折叠的 条评论
为什么被折叠?



