Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错

Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was 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 

在stackoverflow上找到了解决办法

需要删除所有下载失败的重新下载

在linux平台可以

find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

在window平台可以在命令行下输入

cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

项目工程右键->

勾选Update dependencies下的Force Update of....按ok

哦了

stackoverflow地址

http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer

时间: 2024-08-28 19:38:17

Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错的相关文章

用eclipse创建maven项目pom.xml报错的解决办法

最近刚学习Maven,用Eclipse创建Maven项目后,pom.xml文件那老是有一个红叉,真TM烦人. 虽然还不知道原因是什么,但还是找到了一种解决办法. 在项目上右键,maven->update project... 然后选择强制更新,点击OK 稍等片刻,红叉就没有了.

eclipse中Maven项目pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver

解决方法: 把本地MAVEN库的该jar相关信息先删除,然后通过MAVEN重新构造一次即可 1.如下图我的本地Maven库关于 xstream包,删除红色框中的包! 2.然后新建一个maven项目,在pom中配置依赖: <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.3</

eclipse 搭建springboot项目pom.xml报错

1. 报错信息 2. 解决方法 在pom.xml文件中加入maven版本修改 <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> 3. 右键项目-->Update Project... 4. 问题解决 原文地址:https://www.cnblogs.com/zhainan-blog/p/11301026.html

eclipse创建Maven项目时pom.xml报错

报错的主要原因是:我们刚创建的项目下webapp里面没有INF-WEB/web.xml文件 解决办法: 右键项目->双击Properties打开Properties for **窗口,然后点击Maven->Project Facets 找到如下图的选项,把取消选中 点击右下方的 Apply,然后选中上面的 Dynamic Web Module 下方就会出现如图所示: 点击上图所示,进入如下图所示: 在Generate  web.xml前面打勾 ,并把Content directory修改为sr

dubbo spring pom文件报错:提示no declaration can be found for element &#39;dubbo:service&#39;.

pom文件报错:The matching wildcard is strict, but no declaration can be found for  element 'dubbo:service'. 解决办法: 找到dubbo的jar包,解压后在META-INF文件夹下找到dubbo.xsd 在eclipse中点击windows-->preferrence-->xml-->xmlcatalog 选择add-->catalog entry  -->file system

spring pom文件报错:提示no declaration can be found for element &#39;dubbo:service&#39;.

转自:http://blog.csdn.net/happylife_haha/article/details/52755425 pom文件报错:The matching wildcard is strict, but no declaration can be found for  element 'dubbo:service'. 解决办法: 找到dubbo的jar包,解压后在META-INF文件夹下找到dubbo.xsd 在eclipse中点击windows-->preferrence-->

解决eclipse: Resource is out of sync with the file system 报错问题

eclipse版本:4.3 在eclipse中搜索时,搜索完之后有时候会弹出错误对话框,错误摘录如下: Resource is out of sync with the file system......分析:这个问题是由于eclipse中文件不同步引起的.在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但 又关闭了自动刷新功能,则会引起文件不同步,从而搜索时出现Resource is out of sync with the file system

连接私服仓库maven的pom文件报错:Project build error: Non-resolvable parent POM

配置了私服maven仓库,在内网160服务器上,修改了maven配置文件.下载了一个项目,pom文件报错 问题如图:         将<version>1.5.13.RELEASE</version>改成<version>2.0.1.RELEASE</version> 在更新项目 选中项目右击->maven->update project 刷新160上的私服网页看到jar包下载了 参考:https://blog.csdn.net/zyp6309

spring 管理事务配置时,结果 报错: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here这个异常

java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here这个异常 这个错误,网上说的原因一大推,反正我这个出的问题 是因为 虽然我在 spring 里把事务都配置好了,结果运行就出现这个错误,看看配置都没什么问题,都是网上 案例 照 写编码的,还是错的,结果发现是因为 我