本地仓库存在插件,为什么还要去下载呢?求大神帮忙,好困惑
执行命令后:
[root@NMS xdrMS-Portal]# mvn help:system[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.5.1: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin🏺2.5.1
下面是插件在本地仓库的位置
[root@NMS 2.5.1]# pwd/usr/apache-maven-3.1.1/repository/org/apache/maven/plugins/maven-compiler-plugin/2.5.1
[root@NMS 2.5.1]# ll
总计 56
-rw-r--r-- 1 root root 32507 06-15 12:45 maven-compiler-plugin-2.5.1.jar
-rw-r--r-- 1 root root 40 06-15 12:45 maven-compiler-plugin-2.5.1.jar.sha1
-rw-r--r-- 1 root root 7926 06-15 12:45 maven-compiler-plugin-2.5.1.pom
-rw-r--r-- 1 root root 447 06-15 13:32 maven-compiler-plugin-2.5.1.pom.lastUpdated
-rw-r--r-- 1 root root 40 06-15 12:45 maven-compiler-plugin-2.5.1.pom.sha1
-rw-r--r-- 1 root root 229 06-15 12:45 _remote.repositories
[root@NMS 2.5.1]#
本地仓库中的jar包是手动下载下来,放到仓库目录下的吗?如果这样的话就会有问题,需要你用maven命令安装的,如下所以: