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