Spring boot 引入lib包
作者:
板栗炖牛肉 | 来源:发表于
2021-05-19 17:49 被阅读0次
前言
- 特殊原因,不想把jar打入仓库
- 放在项目内,跟随上传
- 引用文章
解决方案
image.png
...
<dependency>
<groupId>com.zhuozhengsoft</groupId>
<artifactId>pageoffice</artifactId>
//重点-开始
<scope>system</scope>
<systemPath>${project.basedir}/lib/pageoffice5.2.0.8.jar</systemPath>
//重点-结尾
<version>5.2.0.8</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
//重点-开始
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
//重点-结尾
</plugin>
</plugins>
</build>
image.png
Ps
- 其他原因不想打包
<scope>system</scope>
的jar包,百度配置
本文标题:Spring boot 引入lib包
本文链接:https://www.haomeiwen.com/subject/zpopjltx.html
网友评论