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

文章来自:http://www.cnblogs.com/niejunlei/p/5979196.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3