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
上一篇:乙方渗透测试之Fuzz爆破


下一篇:如何防止DDos攻击?