mvn upload jar to nexus3.8

[root@localhost upload]# cat settings.xml 



  /home/repo
  
   
    thirdparty
    admin
    admin123
    
  
#mvn -s /root/work/base/settings.xml deploy:deploy-file -DgeneratePom=false -DgroupId=com.jettech -DartifactId=jettech-datapoolmanage-web -Dversion=8.1.0-SNAPSHOT -Dpackaging=jar -Dfile=$(pwd)/datapoolmanage_web_test_126_2.18.1/jettech-datapoolmanage-web/target/jettech-datapoolmanage-web-1.1.0/WEB-INF/lib/jettech-datapoolmanage-controller-1.1.0.jar -DrepositoryId=maven-snapshots -Durl=http://10.30.30.1:8082/repository/maven-snapshots/
groupId=$1
artifactId=$2
version=$3
file=$4
mvn -s /root/work/base/settings.xml \
deploy:deploy-file -DgeneratePom=false \
-DgroupId=$groupId \
-DartifactId=$artifactId \
-Dversion=$version \
-Dpackaging=jar \
-Dfile=$file \
-DrepositoryId=thirdparty \
-Durl=http://172.16.10.1:8082/repository/thirdparty/

# ./mvn_upload.sh com.ibm ctgclient 9.2 /root/work/base/xubing/jettopro/jettoapi/depend/jettoapi-actuator/ctgclient-9.2.jar

你可能感兴趣的:(java)