命令:
➜ mvn deploy:deploy-file -DgroupId=net.sourceforge.cpdetector -DartifactId=cpdetector -Dversion=1.0.7 -Dpackaging=jar -Dfile=/Users/lcp/Downloads/cpdetector-1.0.7.jar -Durl=http://192.168.2.4:18888/repository/thirdparty/ -DrepositoryId=releases
說明:
-DgroupId:jar包groupId
-DartifactId:jar包的artifactId
-Dversion:jar包的版本號
-Dpackaging:這個貌似沒什麼卵用
-Dfile:jar包文件的路徑
-Durl:jar包deploy到那個路徑下
-DrepositoryId:settings.xml文件中節點裏面的id