maven 下载包冲突问题
java开发需要调用apache phoenix接口,配置pom.xml文件,内容如下:
<repositories>
<repository>
<id>apache release</id>
<url>https://repository.apache.org/content/repositories/releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-core</artifactId>
<version>4.5.2-HBase-1.0</version>
</dependency>
</dependencies>
下载完成之后,出现错误:
Multiple annotations found at this line:
- ArtifactTransferException: Failure to transfer org.apache.hadoop:hadoop-common:jar:2.5.1
from https://repository.apache.org/content/repositories/releases/ was cached in the local repository,
resolution will not be reattempted until the update interval of apache release has elapsed or updates
are forced. Original error: Could not transfer artifact org.apache.hadoop:hadoop-common:jar:2.5.1
from/to apache release (https://repository.apache.org/content/repositories/releases/): No response
received after 60000
- ArtifactTransferException: Failure to transfer org.iq80.snappy:snappy:jar:0.3 from http://
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.iq80.snappy:snappy:jar:0.3 from/to central (http://
repo.maven.apache.org/maven2): The operation was cancelled.
- ArtifactTransferException: Failure to transfer net.sourceforge.findbugs:annotations:jar:1.3.2
from http://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 net.sourceforge.findbugs:annotations:jar:1.3.2 from/to central (http://
repo.maven.apache.org/maven2): The operation was cancelled.
- Missing artifact org.iq80.snappy:snappy:jar:0.3
- Missing artifact org.apache.hadoop:hadoop-common:jar:2.5.1
- ArtifactTransferException: Failure to transfer net.sourceforge.findbugs:annotations:jar:1.3.2
from https://repository.apache.org/content/repositories/snapshots/ was cached in the local
repository, resolution will not be reattempted until the update interval of apache snapshot has
elapsed or updates are forced. Original error: Could not transfer artifact
net.sourceforge.findbugs:annotations:jar:1.3.2 from/to apache snapshot (https://
repository.apache.org/content/repositories/snapshots/): The operation was cancelled.
- ArtifactTransferException: Failure to transfer org.iq80.snappy:snappy:jar:0.3 from https://
oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will
not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates
are forced. Original error: Could not transfer artifact org.iq80.snappy:snappy:jar:0.3 from/to sonatype-
nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots): The operation was
cancelled.
- Missing artifact net.sourceforge.findbugs:annotations:jar:1.3.2
- ArtifactTransferException: Failure to transfer org.apache.hadoop:hadoop-common:jar:2.5.1
from http://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.apache.hadoop:hadoop-common:jar:2.5.1 from/to central (http://
repo.maven.apache.org/maven2): No response received after 60000
- ArtifactTransferException: Failure to transfer net.sourceforge.findbugs:annotations:jar:1.3.2
from http://conjars.org/repo was cached in the local repository, resolution will not be reattempted
until the update interval of conjars.org has elapsed or updates are forced. Original error: Could not
transfer artifact net.sourceforge.findbugs:annotations:jar:1.3.2 from/to conjars.org (http://conjars.org/
repo): The operation was cancelled.
- ArtifactTransferException: Failure to transfer org.iq80.snappy:snappy:jar:0.3 from https://
repository.apache.org/content/repositories/snapshots/ was cached in the local repository, resolution
will not be reattempted until the update interval of apache snapshot has elapsed or updates are
forced. Original error: Could not transfer artifact org.iq80.snappy:snappy:jar:0.3 from/to apache
snapshot (https://repository.apache.org/content/repositories/snapshots/): The operation was
cancelled.
- ArtifactTransferException: Failure to transfer net.sourceforge.findbugs:annotations:jar:1.3.2
from https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository,
resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed
or updates are forced. Original error: Could not transfer artifact
net.sourceforge.findbugs:annotations:jar:1.3.2 from/to sonatype-nexus-snapshots (https://
oss.sonatype.org/content/repositories/snapshots): The operation was cancelled.
- ArtifactTransferException: Failure to transfer org.iq80.snappy:snappy:jar:0.3 from http://
conjars.org/repo was cached in the local repository, resolution will not be reattempted until the
update interval of conjars.org has elapsed or updates are forced. Original error: Could not transfer
artifact org.iq80.snappy:snappy:jar:0.3 from/to conjars.org (http://conjars.org/repo): The operation
was cancelled.
解决方法:
因为依赖冲突,要下载的包在本地m2文件里已经存在,所以将本地资源删除,重新update即可。
从错误报告中可以看到,主要冲突的包有三个:
org.apache.hadoop:hadoop-common:jar:2.5.1
org.iq80.snappy:snappy:jar:0.3
net.sourceforge.findbugs:annotations:jar:1.3.2
转载于:https://www.cnblogs.com/niubingru/p/6047535.html
maven 下载包冲突问题相关推荐
- 【maven】maven jar 包 冲突 的解决方式
1.概述 视频参考:maven jar 包 冲突 的解决方式 此处文章参考:Mvn : Maven的依赖管理 依赖冲突 解决思路
- maven jar包冲突常见报错及解决方法
见到如下错误,可以想到是不是jar包冲突 1.java.lang.NoSuchMethodError 2.java.lang.ClassNotFoundException 3.java.lang.No ...
- [转载] Maven类包冲突终极三大解决技巧 mvn dependency:tree
举例 A依赖于B及C,而B又依赖于X.Y,而C依赖于X.M,则A除引B及C的依赖包下,还会引入X,Y,M的依赖包(一般情况下了,Maven可通过<scope>等若干种方式控制传递依赖). ...
- Maven类包冲突终极解决小技若干
那句话怎么讲来着的... 引用 如果你爱他,就请让他用Maven,因为那里是天堂,如果你恨他,就请让他用Maven,因为那里是地狱. Maven对于新手来说是<步步惊心>,因为它包罗万象, ...
- 几个解决 Maven Jar 包冲突的小技巧,太实用了!
前言 大家在项目中肯定有碰到过Maven的Jar包冲突问题,经常出现的场景为: 本地运行报NoSuchMethodError,ClassNotFoundException.明明在依赖里有这个Jar包啊 ...
- IntelliJ IDEA Maven jar包冲突解决,快速发现jar包冲突
IntelliJ IDEA 自带的Diagrams 去查看jar包冲突相当费劲 ~ ,安装个插件即可快速解决该问题 打开Settings,搜索maven helper,并安装 安装完成后,直接打开po ...
- 常用jar包_几个解决 Maven Jar 包冲突的小技巧.
前言 大家在项目中肯定有碰到过Maven的Jar包冲突问题,经常出现的场景为: 本地运行报NoSuchMethodError,ClassNotFoundException.明明在依赖里有这个Jar包啊 ...
- android jar包冲突_用好这几个技巧,解决Maven Jar包冲突易如反掌
前言 大家在项目中肯定有碰到过Maven的Jar包冲突问题,经常出现的场景为: 本地运行报NoSuchMethodError,ClassNotFoundException.明明在依赖里有这个Jar包啊 ...
- Maven Jar包冲突?看看高手是怎么解决的
接手了一套比较有年代感的系统,计划把重构及遇到的问题写成系列文章,老树发新枝,重温一些实战技术,分享给大家.[重构02篇]:Maven项目Jar包管理机制.冲突解决. 知识背景 Jar包冲突在软件开发 ...
最新文章
- java 底层方法_底层方法测试--【Java】
- 思科设备snmp配置。
- 天梯赛-是否完全二叉搜索树
- 工厂模式解耦---控制反转
- 【kafka】kafka topic某些分区 副本落后leader太多
- 购物网站注册页面html,电商购物网站 - 实现注册
- 微信聊天记录导出(2020新版)
- 最简单的Rest服务
- C++数据库编程简介
- DHTMLXGantt and DHTMLXGantt pro
- 形象标识 新松机器人_新松SIASUN工业机器人标志logo设计,品牌设计vi策划
- 英雄联盟的角色设计思路
- L1-009 N个数求和(解决测试点三错误)
- 简单的回显客户端/服务器应用
- 树莓派显示器分辨率的调整,黑边的修改方法
- R语言使用cph函数和rcs函数构建限制性立方样条cox回归模型、使用ggcoxzph函数可视化进行Schoenfeld残差图检验模型是否满足等比例风险
- ASP对接国际验证码接口DEMO示例
- 【算法-枚举】淘气的青蛙 自己对解题思路的梳理
- linux 进入recovery模式,recovery是什么意思 如何进入recovery模式【详细介绍】
- 企业舆情双十一优惠活动
热门文章
- 30秒的PHP代码片段(3)字符串-String 函数-Function
- 禁止蒙层底部页面跟随滚动 1
- 源码安装apache实例
- Codeforces Round #423 (Div. 2, rated, based on VK Cup Finals) C. String Reconstruction 并查集
- Netdata---Linux系统性能实时监控平台部署记录
- MySQL数据库多种安装方法及企业级安装实践
- SQL2008R2 express版本不支持维护计划
- JQuery实现点击TreeView文本展开/折叠子节点
- TDD可以驱动设计吗?
- python安装mysqldb模块