目录
maven将jar包安装到本地仓库
/  

maven将jar包安装到本地仓库

命令

mvn install:install-file -DgroupId=com.alipay -DartifactId=alipay-trade-sdk -Dversion=20161215 -Dpackaging=jar -Dfile=alipay-trade-sdk-20161215.jar

详细指令:

mvn install:install-file 
-DgroupId=com.alipay 
-DartifactId=alipay-trade-sdk 
-Dversion=20161215 
-Dpackaging=jar 
-Dfile=alipay-trade-sdk-20161215.jar

maven引用的时候

        <dependency>
            <groupId>com.alipay</groupId>
            <artifactId>alipay-trade-sdk</artifactId>
            <version>20161215</version>
        </dependency>