Maven The following artifacts could not be resolved: javax.jms:jms:jar:1.1

 ref : http://blog.csdn.net/miqi770/article/details/40514099

很坑的问题,默认的库里没有jms:jar:1.1 , url地址失效了,需要用其他版本的log4j

 

 

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.407s 
[INFO] Finished at: Wed Sep 05 17:38:58 CST 2012 
[INFO] Final Memory: 3M/15M 
[INFO] ------------------------------------------------------------------------ 
[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: 
[ERROR] [Help 1]http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso 
lutionException

这个程序唯一的maven依赖就是log4j。

 

然后我就去查,那个“No connector available to access repository java.net”到底是因为什么?我开始以为是https的问题,后来想,该不会是被gfw了吧?最后发现,原来是因为 https://maven-repository.dev.java.net/nonav/repository 这个域名已经无法解析了。

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

 

但是,这个域名,它失效了! maven并没有报告域名解析异常,而是说没有可用的Connector。神啊!鬼才知道你那异常日志代表什么。解决办法很简单:把log4j的版本换成1.2.16或者1.2.17就可以了。

使用 JeecgBoot Maven 依赖包无法下载 异常 The following artifacts could not be resolve 最近公司接了二次外包项目,项目是使用 JeecgBoot (http://doc.jeecg.com/) 搭建的,第一次导入项目怎么都不成功,报了如下错误。 [ERROR] Failed to execute goal on project xxx-base-core: Could not resolve dependencies for project org.dekunframework.boot:xxxx-base-core:jar:2.4.0: The following artifacts c 阅读详情

相关推荐

maven编译报错 was cached in the local repository 拉包失败

maven编译报错 was cached in the local repository 拉包失败 报错 [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3:repackage (default) on project otpweb: Execution default of goal org.springframework.boot:spring-boot-maven-plugi

没啥简介 3841

java maven log4j

今天我用maven编译一个程序的时候,死活过不去。老说jmsjar包下载不下来。 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------...

asdfljw的博客 438

geronimo-jms_1.1_spec-1.1.1-sources.jar

Java开发中activeMQ用到的源码

mvn 执行 install 或者 compil 错误

错误场景:执行 mvn compil 进行编译,但是编译失败,error 提示: The following artifacts could not be resolved: com.paas.xxxxx:paas-common-access-log:jar:1.0.0-SNAPSHOT, com.paas.xxxxx:paas-common-base:jar:1.0.0-SNAPSHOT: C...

baobaoxiannv的博客 2448

Maven The following artifacts could not be resolved: javax.jms:jms:jar:1.1

[INFO] ------------------------------------------------------------------------  [INFO] BUILD FAILURE  [INFO] ------------------------------------------------------------------------  [INFO] Total

miqi770的专栏 3万+

Could not find artifact javax.jms:jms:jar:1.1

maven install报错The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Failure to find javax.jms:jms:jar:1.1 in http://19...

hhcccchh的专栏 3532

Maven编译报错解决:Failed to execute goal...Could not resolve dependencies...The following artifacts...

Failed to execute goal on project atlas-testtools: Could not resolve dependencies for project org.apache.atlas:atlas-testtools:jar:2.3.0: The following artifacts could not be resolved: org.restlet.jee:org.restlet:jar:2.4.3

m0_51226527的博客 1208

The following artifacts could not be resolved: nl.jworks.markdown_to_asciidoc:markdown_to_asciidoc..

The following artifacts could not be resolved: nl.jworks.markdown_to_asciidoc:markdown_to_asciidoc

博客 3092

我遇到的一些maven项目错误

导入maven项目,FIle→Import→Existing Maven Projects→找到自己想要导入的文件目录→Finish。项目就导入完成啦。接着就遇上了各种报错!! 一、Pom.xml文件第一次报错 CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache

xjiup的博客 1365

Java导入项目时,出现的异常

解决方式:先clean,后install。问题:初始运行时出现。

weixin_52998829的博客 1375

The following artifacts could not be resolved: org.junit.platform:junit-platform-engine

intellij-idea打包jar出现问题: Failed to execute goal on project untitled1: Could not resolve dependencies for project org.example:untitled1:jar:1.0-SNAPSHOT:

m0_55715771的博客 1539

The following artifacts could not be resolved(jenkins打包报错

首先我jenkins是用rpm安装的,但是我maven不是,这就导致使用的不是同一个库,maven库里面有依赖但是jenkins没有,导致下面报错。 从报错中看,缺少两个jar包的依赖:auth:jar:1.0.0.jar jkglClient:jar:20201110.jar 项目不一样我的是这两个jar包,可能你的不是但是操作方法一样。 maven安装路径在:/opt...

點灯的人 1763

maven3.8.2版本导致openjdk.jar报错:Cannot find file

真的吐血了快!又是maven问题,导致项目打包报错maven问题梅开二度!!!我醉了呀!!! 问题描述 在idea中使用Terminal终端,对项目进行打包,然后报错报错信息: [ERROR] Failed to execute goal on project msc-facade-base: Could not resolve dependencies for project com.shenzhenbsoft:msc-facade-base:jar:1.0: The following art

Aliux_JLQ的博客 2505

SpringAI maven导入报错 【Non-resolvable import POM: The following artifacts could not be resolved

本文解决了Spring AI 0.8.1版本Maven导入报错问题。问题原因是阿里云镜像未同步该版本且Maven缓存了失败状态。解决方案包括:1)强制刷新Maven缓存(-U参数);2)确认版本不存在后改用1.0.0-M6版本。建议重要项目保留官方仓库或使用私服中转,避免镜像同步延迟问题。最终修改pom.xml版本号后成功解决依赖问题。

qq_45704841的博客 4827

Could not resolve dependencies for project xxx The following artifacts could not be resolved:

问题:Failed to execute goal on project dss-collector-base: Could not resolve dependencies for project com.linkcm:dss-collector-base:jar:1.0: The following artifacts could not be resolved: 解决方法:删除对应包里面的 _remote.repositories 文件 ...

huadongqiang的博客 6266

管理工具---Maven系列(一)编译问题Could not resolve dependencies for project

Maven install编译报错Could not resolve dependencies for project Could not resolve dependencies for project org.springframework.samples.service.service: com.lvwang.osf:war:0.0.1-SNAPSHOT: The followi

小诚信驿站 5万+

Springboot多模块打包出错问题可能是因为

Springboot多模块打包提示 ailed to execute goal on project videopush: Could not resolve dependencies for project com.rtmp:videopush:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.byted...

三步两步走 1668
上一篇: Plugin execution not covered by lifecycle configuration
下一篇: 转 spark简单实例
blackproof
博客等级 码龄17年 11粉丝 543原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值