Wait the light to fall

使用 mvn 单独下载某个依赖

焉知非鱼

例如,某个依赖在 pom 文件中是这样的:

<dependency>
    <groupId>redis.clients</groupId>
    <artifactId>jedis</artifactId>
    <version>2.6.2</version>
</dependency>

那么使用 mvn 单独下载这个依赖:

mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get \
  -DrepoUrl=https://mvnrepository.com/artifact/ 
  -Dartifact=redis.clients:jedis:2.6.2