到中央仓库 地址 http://mvnrepository.com/

找到你要的包

输入这个指令 需要修改的 url、groupId、artifactId、version


mvn dependency:get -DremoteRepositories=url -DgroupId=groupId -DartifactId=artifactId -Dversion=version


mvn dependency:get -DremoteRepositories=https://mvnrepository.com/artifact/commons-logging/commons-logging -DgroupId=commons-logging -DartifactId=commons-logging -Dversion=1.1.1

等命令运行完毕之后,在我的本地仓库里面可以看到,该jar包已经下载了下来: