maven 本地包依赖包打进jar

1.声明依赖jar的时候使用

<dependency>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/a.jar</systemPath>
</dependency>

2.build添加如下代码

原文地址:https://www.cnblogs.com/huanglin101/p/7522006.html