mvn deploy:deploy-file -DgroupId=taobao-sdk -DartifactId=taobao-sdk-java -Dversion=1.0 -Dpackaging=jar -Dfile=E:\DUANBO\Desktop\taobao-sdk-java-1.0.jar -Durl=http://192.168.0.86:8081/repository/maven-releases/ -DrepositoryId=lutao-maven-nexus
mvn deploy:deploy-file -DgroupId=com.jd.trip -DartifactId=trip-soa-common -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=E:\DUANBO\Desktop\trip-soa-common-0.0.1-SNAPSHOT.jar -Durl=http://192.168.0.86:8081/repository/maven-snapshots/ -DrepositoryId=lutao-maven-nexus

注意事务:

-DrepositoryId=lutao-maven-nexus 参数值lutao-maven-nexus对应Maven中settings.xml的认证配的ID,如下:

第三方jar上传到Maven私服(Nexus)-LMLPHP

04-26 07:18