maven基础依赖外部lib包(依赖钉钉sdk为例)
jar包放置位置
pom.xml指定依赖
1 <dependencies> 2 <!--钉钉工具包,如缺失请到钉钉服务器开发文档下载--> 3 <dependency> 4 <groupId>com.taobao.top</groupId> 5 <artifactId>top-api-sdk-dev</artifactId> 6 <version>ding-open-mc-SNAPSHOT</version> 7 <scope>system</scope> 8 <systemPath>${pom.basedir}/src/lib/taobao-sdk-java-auto_1479188381469-20190425.jar</systemPath> 9 </dependency> 10 <dependency> 11 <groupId>com.taobao.top</groupId> 12 <artifactId>lippi-oapi-encrpt</artifactId> 13 <version>dingtalk-SNAPSHOT</version> 14 <scope>system</scope> 15 <systemPath>${pom.basedir}/src/lib/lippi-oapi-encrpt.jar</systemPath> 16 </dependency> 17 </dependencies> 18 <build> 19 <resources> 20 <resource> 21 <directory>src/main/resources</directory> 22 <includes> 23 <include>**/*</include> 24 </includes> 25 </resource> 26 <resource> 27 <directory>src/lib</directory> 28 <targetPath>BOOT-INF/lib/</targetPath> 29 <includes> 30 <include>**/*.jar</include> 31 </includes> 32 </resource> 33 <resource> 34 <directory>src/main/resources</directory> 35 <targetPath>BOOT-INF/classes/</targetPath> 36 </resource> 37 </resources> 38 </build>