在src下新建lib目录,并把需要添加的jar包加到目录下面,在dependencies下添加依赖
<dependency>
<groupId>com.it.huang</groupId>
<artifactId>crypon</artifactId>
<version>1.1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/lib/crypon.jar</systemPath>
</dependency>
build标签下添加
<resources>
<resource>
<directory>src/lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<include>**/*<include>
</resource>
</resources>