1. 三方的包放到。src/main/resources 目录下,
eg:src/main/resources/libs
2.pom修改
<dependency> <groupId>com.xxx</groupId> <artifactId>包名</artifactId> <version>1.0.0</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/libs/包名.jar</systemPath> </dependency>
3. 打包修改配置
<configuration> <includeSystemScope>true</includeSystemScope> </configuration>