maven 安装alipay-sdk包到本地及远程仓库

一、安装到本地:

mvn install:install-file -DgroupId=com.alipay -DartifactId=sdk-Java -Dversion=*** -Dpackaging=jar -Dfile=alipay-sdk-java*.jar

二、安装到远程仓库:

maven配置:

<!-- Another sample, using keys to authenticate.
<server>
  <id>siteServer</id>
  <privateKey>/path/to/private/key</privateKey>
  <passphrase>optional</passphrase>
</server>
-->
<server> 
  <id>alipay-java-sdk</id> 
  <username>deployment</username> 
  <password>deployment123</password> 
</server> 
mvn deploy:deploy-file -DgroupId=com.alipay -DartifactId=sdk-Java -Dversion=*** -Dpackaging=jar -Dfile=alipay-sdk-java*.jar -Durl=http://host:port/nexus/content/repositories/releases/ -DrepositoryId=alipay-java-sdk

 

posted @ 2016-10-19 23:36  WindWant  阅读(8731)  评论(0编辑  收藏  举报
文章精选列表