配置maven过程中报过的错及其解决方案
1、【报错】Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not resolved...截图如下:
【解决方案】
(1)查看windows -> Preferences -> maven 的settings.xml文件中.m2的位置
(2)然后将.m2/repository/org/apache/maven/plugins目录下的文件夹全部删除
(3)选中maven项目,右键-->maven-->update让maven重新下载依赖包
2、【报错】Multiple annotations found at this line: -Execution default-testResources of goal org.apache.maven.plugins: maven-resources-plugin: 2.4.3: testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin: 2.4.3 or one of its dependencies could not be resolved...
【解决方案】
详见:http://blog.****.net/imlmy/article/details/8268293
3、【报错】Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured
repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
【解决方案】
详见:http://blog.****.net/afgasdg/article/details/12757433
详见:http://blog.****.net/u011340807/article/details/12649249
4、现在的问题是用maven下载的jar包都是.LastUpdated后缀的,jar包都没有下载成功,导致报上述错误。我在settings.xml里配置了阿里云地址,仔细设置了Preferences-->Maven里的Archetypes、Installations和User Settings,将电脑缓存和下载的repository清理了多次,rebuild Index多次,仍然无法解决问题,不知道是不是哪里的配置有问题。