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>