Maven手动依赖jar包到本地仓库
1.把下好的jar包放在一个文件夹2.cmd进入该文件夹3.执行mvn install:install-file -Dfilepath-to-file -DgroupIdgroup-id -DartifactIdartifact-id -Dversionversion -Dpackagingpackaging例如!-- 验证码 --!-- https://mvnrepository.com/artifact/com.google.code.kaptcha/kaptcha --dependencygroupIdcom.google.code.kaptcha/groupIdartifactIdkaptcha/artifactIdversion2.3.2/version/dependency命令为mvn install:install-file-DfileD:\xxx.jar //jar包位置-DgroupIdcom.google.code.kaptcha-DartifactIdkaptcha-Dversion2.3.2-Dpackagingjar例D:\devTool\apache-maven-3.6.3\bin\mvn install:install-file -Dfilegexin-rp-sdk-http-4.1.2.3.jar -DgroupIdcom.gexin.platform -DartifactIdgexin-rp-sdk-http -Dversion4.1.2.3 -DpackagingjarMaven 手动安装 JAR 包时不需要指定远程仓库地址它默认安装到你本地配置的 Maven 仓库路径即 settings.xml 中 localRepository 定义的目录