您的位置:首页 > 编程语言 > Java开发

关于用Myeclipse新建web project添加maven支持出现的问题

2014-05-29 08:36 447 查看
错误信息:
Failure to transfer org.apache.maven.plugins:maven-war-plugin:pom:2.1.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-war-
plugin:pom:2.1.1 from/to central (http://repo1.maven.org/maven2): null to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war- plugin-2.1.1.pom
错误信息来源于pom.xml的project标签,标签为:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
错误解决方法:
删除路径.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1(有些系统文件路径可能不同)下的后缀名为.lastUpdated文件并重新刷新文件以及更新项目配置
具体操作,在项目那里右键->refresh,项目->右键->Maven4Myeclipse->update project configuration....
以上使用Myeclipse版本10.0,Maven3.2.1,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: