3
回答
maven不是首先在本地仓库查找资源的么?
【腾讯云】校园拼团福利,1核2G服务器10元/月!>>>   

本地仓库存在插件,为什么还要去下载呢?求大神帮忙,好困惑

执行命令后:

[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:jar: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]#

 

举报
顶部