mvn dependency:get -DremoteRepositories= -DgroupId= -DartifactId= -Dversion=
填入仓库地址,填入groupId, artifactId, version即可
mvn install:install-file -Dfile=mrlocateStand.jar -DgroupId=com.bonc -DartifactId=mrlocate -Dversion=1.0 -Dpackaging=jar -DlocalRepositoryPath=D:\m2\repository -Dfile.encoding=UTF-8
打包到本地命令模板
-Dfile=jar名称
-DgroupId=可自定义(com.mace)
-DartifactId=可自定义(redisApp)
-Dversion=版本号可自定义(1.0)
-Dpackaging=jar
-DlocalRepositoryPath=指定maven仓库地址(D:\m2\repository)
-Dfile.encoding=UTF-8=可指定项目编码