idea maven项目将本地的jar包 打包进去
2019-07-17 本文已影响0人
蛋皮皮652
1.在项目下新建lib文件夹存放jar包
12.添加本地jar包依赖
<dependency>
<groupId>cma.cimiss</groupId>
<artifactId>music-client</artifactId>
<scope>system</scope>
<version>v1.6.0</version>
<systemPath>${project.basedir}/lib/music-client-v1.6.0.jar</systemPath>
</dependency>
<dependency>
<groupId>Ice</groupId>
<artifactId>Ice</artifactId>
<scope>system</scope>
<version>1.0.0</version>
<systemPath>${project.basedir}/lib/Ice.jar</systemPath>
</dependency>
23.将lib下的文件打包到jar包里
<resources>
<resource>
<directory>lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
3