mvn install:install-file -DgroupId=com.test -DartifactId=test-demo -Dversion=1.0 -Dpackaging=jar -Dfile=C:/Desktop/test-demo.jar
说明:
-DgroupId=com.test 指定groupId
-DartifactId=test-demo 指定artifactId
-Dversion=1.0 指定版本
-Dpackaging=jar
-Dfile=C:/Desktop/test-demo.jar jar包存放位置