1. 将jar包copy 进去 模块的目录下
2. 在模块的pom 文件中加入
<dependency>
<groupId>com.pdstars</groupId>
<artifactId>decodeFile</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/decodeFile-1.0-SNAPSHOT.jar</systemPath>
</dependency>
##build 里面加入
<resources>
<resource>
<directory>lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
3. 在project structrue library 中加入lib 目录
参考 https://blog.csdn.net/huxiaodong1994/article/details/80702278
网友评论