Install a local jar, alipay here for an example
1, sdk download from Fubao Guan branch network
Official website scan code Login: https: //openhome.alipay.com
Into the sandbox environment: https: //openhome.alipay.com/platform/appDaily.htm tab = info?
Download personally pay sdk
Download PC sites pay sdk
2, identify the required jar package groupId and artifactId
First, look for a dependency from maven remote repository according to artifactId. Record groupId and artifactId. If you can not find maven in Baidu search. (Recommended Baidu to find)
Support Fubao Guan jar package obtained from the website to download the demo.
Given directly dependent here:
<!--下面三个依赖:支付宝相关依赖-->
<dependency>
<groupId>com.alipay.sdk</groupId>
<artifactId>alipay-sdk-java</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>com.alipay</groupId>
<artifactId>alipay-trade-sdk</artifactId>
<version>20161215</version>
</dependency>
3, the local repository mounted reliance
Installation command:
mvn install:install-file -DgroupId=com.alipay.sdk -DartifactId=alipay-sdk-java -Dversion=3.3.0 -Dpackaging=jar -Dfile=alipay-sdk-java-3.3.0.jar
mvn install:install-file -DgroupId=com.alipay -DartifactId=alipay-trade-sdk -Dversion=20161215 -Dpackaging=jar -Dfile=alipay-trade-sdk-20161215.jar
3.1, a manner, in the installation cmd.
Switching to the parent directory of a jar is located, and then run the install command.
3.2, two way, idea mounted directly
And then update the project, you can update it to the project below.