使用阿里镜像地址下载jar包
一、在D:\maven\apache-maven-3.8.6\conf\settigs.xml中修改地址
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
插入以上的代码片段,扩展下载速度
二、在maven源中https://mvnrepository.com/,找到需要下载的jar包地址
三、命令行执行以下命令,下载jar包到本地仓库中
mvn dependency:get -DremoteRepositories=https://mvnrepository.com/artifact/org.glassfish.web/jstl-impl -DgroupId=org.glassfish.web -DartifactId=jstl-impl -Dversion=1.2