使用Maven时pom.xml最上面尖角号出现红色 错误解决
2017-03-16 11:10
531 查看
Maven 错误解决
错误信息:
Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 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-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem
解决方案:
找到{user} /.m2 / repository文件夹(在这里使用Win7)
如我的电脑是:C:\Users\Administrator\.m2\repository
在窗口右上方的搜索字段中,键入“.lastupdated”。
Windows将查看目录中这些文件的所有子文件夹。
通过右键单击>删除(我保留了所有的lastupdated.properties)删除它们。
然后回到Eclipse,右键单击项目并选择Maven>更新项目。 我选择了“强制更新快照/版本”。
单击确定,依赖项最终正确解析。
错误信息:
Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 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-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem
解决方案:
找到{user} /.m2 / repository文件夹(在这里使用Win7)
如我的电脑是:C:\Users\Administrator\.m2\repository
在窗口右上方的搜索字段中,键入“.lastupdated”。
Windows将查看目录中这些文件的所有子文件夹。
通过右键单击>删除(我保留了所有的lastupdated.properties)删除它们。
然后回到Eclipse,右键单击项目并选择Maven>更新项目。 我选择了“强制更新快照/版本”。
单击确定,依赖项最终正确解析。
相关文章推荐
- maven项目的pom.xml文件出现红色错误提示:ArtifactTransferException: Failure to transfer
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法
- maven打包时出现【java source 1.3中不支持泛型 请使用 -source 5 或更高版本以启用泛型】错误时的解决方法
- 后台——使用maven时出现Failure to transfer 错误的解决方法
- Maven pom.xml文件引入jar包出现 missing artifact问题解决办法
- maven导入项目时出现“Cannot read lifecycle mapping metadata …… invalid END header (bad central directory offset)pom”错误的解决方法
- 使用maven时出现Failure to transfer 错误的解决方法
- 使用maven时出现Failure to transfer 错误的解决方法
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- Spring Tool Suite首次使用pom.xml出现依赖异常解决办法
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- 关于php 使用 soap出现错误 looks like we got no XML document 解决方法
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- 新建maven后,配置pom.xml文件导入spark的jar包,出现红色叹号
- jenkins 使用 maven的pom.xml编译的时候提示 错误: 编码GBK的不可映射字符
- Maven项目总是出现org.hibernate.HibernateException: /hibernate.cfg.xml not found错误的解决方法
- 使用MyEclipse创建Maven项目出现的错误及解决方法
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法