maven命令下载jar包

下载以下的jar包到本地仓库中


    org.glassfish.web
    jstl-impl
    1.2

可以在本地的settings.xml文件中添加阿里镜像地址

      
      alimaven  
      aliyun maven  
      http://maven.aliyun.com/nexus/content/groups/public/
      central          
    

在maven源中https://mvnrepository.com/,找到需要下载的jar包地址

maven命令下载jar包_第1张图片

命令行执行以下命令,下载jar包到本地仓库中

mvn dependency:get -DremoteRepositories=https://mvnrepository.com/artifact/org.glassfish.web/jstl-impl -DgroupId=org.glassfish.web -DartifactId=jstl-impl -Dversion=1.2

你可能感兴趣的:(散落笔记,maven命令,下载jar,本地仓库,阿里镜像)