maven 异常解决
2018-03-03 00:00
162 查看
好好的项目换了个电脑就报错了。。。。maven 报错如下
Project build error: Non-resolvable parent POM for com.ld:Alarm:1.0: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from https://repo.maven.apache.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.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM
主要错误原因
maven.apache.org和'parent.relativePath'指向错误的本地POM
解决办法
我直接把本地的仓库缓存maven 的依赖包给删除了,就OK了。
本地仓库的路径我的是
我把仓库里和Springboot 有关的删除了,再保存 一下pom文件就没这问题了。 再maven update 一下。
Project build error: Non-resolvable parent POM for com.ld:Alarm:1.0: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from https://repo.maven.apache.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.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM
主要错误原因
maven.apache.org和'parent.relativePath'指向错误的本地POM
解决办法
我直接把本地的仓库缓存maven 的依赖包给删除了,就OK了。
本地仓库的路径我的是
C:\Users\Administrator\.m2\repository
我把仓库里和Springboot 有关的删除了,再保存 一下pom文件就没这问题了。 再maven update 一下。
相关文章推荐
- 项目添加Maven支持后,单元测试报异常 javax/mail/internet/AddressException 解决
- maven jar包冲突导致java mail报空指针异常问题的解决过程
- Tomcat maven 插件启动出现tomcat\conf\tomcat-users.xml cannot be read异常解决方法
- 【转载】Maven常见异常及解决方法
- 【原】Maven解决jar冲突调试步骤:第三方组件引用不符合要求的javassit导致的相关异常
- dubbo:使用maven打jar包异常解决。
- Maven常见异常及解决方法
- Maven常见异常及解决方法
- 【错误解决】[Maven]使用Maven配置Jstl出现异常:The absolute uri: http://java.sun.com/jsp/jstl/core cannot...
- maven常见异常以及解决方法
- 使用eclipse的maven项目时,没有错误,但是就是各种异常【解决办法】
- Maven+SpringMVC+Eclipse软件安装配置,Maven报插件异常,Eclipse总是卡死的解决方法,导入一个maven工程后 一直显示importing maven project
- MavenReportException:The environment variable JAVA_HOME is not correctly set.错误异常解决方法
- 异常信息:Unable to update index for aliyun|http://maven.aliyun.com/nexus/content/groups/public/ 解决方法
- 如何解决Maven编译项目时报的内存溢出(OutOfMemory)异常
- maven工程发布到tomcat下启动报ClassNotFoundException的异常的解决办法
- 解决Tomcat部署Maven异常:Deployment is out of date due to changes in the underlying project contents
- Java .classpath文件Classpath entry org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published异常解决办法
- Maven常见异常及解决方法
- Maven常见异常及解决方法(转)