maven 安装本地jar

mvn install:install-file -Dfile=D:/open-api-sdk-2.0.jar -DgroupId=com.jd.open -DartifactId=jd-api-sdk -Dversion=2.0 -Dpackaging=jar

  

<dependency>
   <groupId>com.jd.open</groupId>
   <artifactId>jd-api-sdk</artifactId>
   <version>2.0</version>
</dependency>
原文地址:https://www.cnblogs.com/chen-msg/p/10610125.html