博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Maven com.sun.jdmk:jmxtools:jar 下载不下来
阅读量:7042 次
发布时间:2019-06-28

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

hot3.png

昨天用了主管写的一个Spring mvc 框架。用maven进行打包编译时, 一直没有通过。报下面的错:

[ERROR] Failed to execute goal on project logconsumer: Could not resolve depende ncies for project com.sunchangming:logconsumer:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:j ar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms :jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repositor y): No connector available to access repository java.net (https://maven-reposito ry.dev.java.net/nonav/repository) of type legacy using the available factories W agonRepositoryConnectorFactory -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles:

因为公司的网络一直不怎么稳定。猜想是连不上maven的服务器,于是ping 那机器。

ping maven-repository.dev.java.netPing 请求找不到主机 maven-repository.dev.java.net。请检查该名称,然后重试。
那就是没有办法了。只能看看是哪个jar依赖这几个文件了。

去度娘那里问了一下,才知道是log4j.

引用:

原来是这样,在log4j 1.2.15版本中,引用了这样一个repos 
java.net
https://maven-repository.dev.java.net/nonav/repository
legacy
要从它这里面下载jms。

解决方法是:

将pom.xml里的log4j的版本修改为:1.2.16或者1.2.17

转载于:https://my.oschina.net/claireliu/blog/97448

你可能感兴趣的文章
ecshop Ajax使用
查看>>
C#声明、实例化和使用委托
查看>>
JS实现回到顶部效果
查看>>
The hierarchy of the type is inconsistent
查看>>
loadrunner-2-11内容检查
查看>>
ubuntu 安装JDK1.6(jdk-6u45-linux-x64.bin)
查看>>
IHttpHandler的那些事
查看>>
springmvc后台取值中文乱码问题
查看>>
自定义控件 二 安装集成自定义的控件
查看>>
IOS开发之代码之九宫格
查看>>
H5滚动轮播插件
查看>>
陶哲轩实分析 命题7.4.3 (级数的重排) 证明
查看>>
基于形态编程设计类
查看>>
数论+DP HDOJ 4345 Permutation
查看>>
windows上搭建eclipse+golang开发环境
查看>>
pdf
查看>>
基础算法--树的概述
查看>>
【BZOJ3622】已经没有什么好害怕的了
查看>>
oracle之 RAC本地数据文件迁移至ASM
查看>>
个人博客开发完成贴
查看>>