博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pom.xml里有红叉报错的解决办法
阅读量:4598 次
发布时间:2019-06-09

本文共 1083 字,大约阅读时间需要 3 分钟。

pom.xml里有红叉报错的解决办法一:

1.把鼠标点在报的错上发现pom.xml报如下错误:

Multiple annotations found at this line:

- Failure to transfer org.slf4j:slf4j-log4j12:jar:1.7.21 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.slf4j:slf4j-log4j12:jar:1.7.21 from/
to central (http://repo1.maven.org/maven2): ConnectException

2.将pom.xml中的这个jar包删掉

<dependency>

<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.21</version>
</dependency>

解决办法二:

项目右键,properties,java build path,找到meaven依赖里有红叉的jar包,将pom.xml中的这个jar包删掉即可

 使用spring cloud实现分布式配置管理时加入依赖后pom.xml第一行报错

<dependency>

<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>

解决办法:给依赖添加版本号即可。

<dependency>

<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
<version>1.2.2.RELEASE</version>
</dependency>

 

转载于:https://www.cnblogs.com/yuxiaona/p/6258877.html

你可能感兴趣的文章
烟草MES系统介绍-序
查看>>
优先队列小结
查看>>
线程安全与可重入函数之间的区别与联系
查看>>
bat批处理中如何获取前一天日期
查看>>
{Nodejs} request URL 中文乱码
查看>>
异常及日志使用与项目打包
查看>>
努力,时间,坚持,自律
查看>>
真三 bug PT的凤凰
查看>>
???动态SQL
查看>>
js错误处理与调试理论和办法
查看>>
Binding.StringFormat不起作用的原理和解决
查看>>
css hack兼容写法
查看>>
CSS两列布局 一边固定 一边自适应
查看>>
Hadoop2.6.0 动态增加节点
查看>>
图论的一些概念、定理
查看>>
WebView用法
查看>>
Lecture 3: Planning by Dynamic Programming
查看>>
用flash代替图片IMG,设置动态效果链接
查看>>
关于JS的随笔(二)
查看>>
select()函数以及FD_ZERO、FD_SET、FD_CLR、FD_ISSET(转)
查看>>