Eclipse Maven 错误 “Failure to transfer…”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

报错日志

 

这是因为没有下载完导致的,手动或者命令删除这些文件

对于Linux或者OSX:

对于 windows:
[crayon-5[……]

[yol出品] 全文阅读 >>

Eclipse maven中jar依赖冲突解决exclude, pom exclude添加接触jar依赖

背景

因为要添加log4j2, 但是当把pom中log4j1的包去掉后, 项目里面仍然有1, 经检查, 是因为jxl中依赖1的支持, 所以要把jxl的依赖去掉

解决方法

<dependency>

<groupId>net.sourceforge.jex[……]

[yol出品] 全文阅读 >>