1. 程式人生 > >maven上傳到nexue私服

maven上傳到nexue私服

打包到本地倉庫
mvn install:install-file -Dfile=C:\Users\madman\Desktop\alipay-sdk-java20161121110022.jar -DgroupId=com.alipay -DartifactId=alipay-sdk -Dversion=java20161121110022 -Dpackaging=jar
打包到私服
mvn deploy:deploy-file -DgroupId=com.alipay -DartifactId=alipay-sdk -Dversion=java20161121110022 -Dpackaging=jar -Dfile=C:\Users
\madman\Desktop\alipay-sdk-java20161121110022.jar -Durl=http://192.168.1.142:8081/nexus/content/repositories/Imobpay/ -DrepositoryId=Imobpay #需要修改的點 -DgroupId=com.alipay -DartifactId=alipay-sdk -Dversion=java20161121110022 -Dfile=C:\Users\madman\Desktop\alipay-sdk-java20161121110022.jar