maven命令下載jar包

下載以下的jar包到本地倉庫中

<dependency>
    <groupId>org.glassfish.web</groupId>
    <artifactId>jstl-impl</artifactId>
    <version>1.2</version>
</dependency>

可以在本地的settings.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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章