log4j的1.2.15版本,在pom.xml中的顶层project报错错误: Failure to transfer javax.jms:jms:jar:1.1 from https://maven-repository.dev.java.net/nonav/repository......
2016-10-30 22:32
656 查看
在动态网站工程中,添加了Pom依赖,当添加log4j的1.2.15版本依赖时,在pom.xml中的顶层project报错错误: Failure to transfer javax.jms:jms:jar:1.1 from https://maven-repository.dev.java.net/nonav/repository......,如下图
这是因为 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。
解决办法:把log4j的版本换成1.2.16或更高。
相关文章推荐
- Maven新导入项目时出现错误Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.
- Maven错误问题解决 Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1 from https://repo.maven
- maven的pom 提示错误 Failure to transfer com.thoughtworks.xstream:xstream:jar:
- Maven 工程错误Failure to transfer org.codehaus.plexus:plexus-io:pom:1.0,Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1
- Maven 报错: Failure to transfer classworlds:classworlds:pom:1.1-alpha-2 from
- maven项目pom.xml报错: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from
- Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interv
- Maven 出错: Failure to transfer classworlds:classworlds:pom:1.1-alpha-2 from
- maven项目下载报错:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven...
- Failure to transfer org.apache.maven.plugins:maven-war-plugin:pom:2.2 from https://repo.maven.apache
- maven项目的pom.xml文件出现红色错误提示:ArtifactTransferException: Failure to transfer
- Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven
- myeclipse创建maven项目pom报错,Failure to transfer com.thoughtworks.xstream:xstream:jar:1.3.1
- maven的pom 提示错误 Failure to transfer com.thoughtworks.xstream:xstream:jar:
- Failure to transfer org.apache.maven: maven-artifact-manager:pom:2.0.6 from http://repo.maven.apache
- Maven pom.xml报错Multiple annotations found at this line: - Missing artifact log4j:log4j:jar:1.2.15:co
- 引入Maven project 时报 Project configuration is not up-to-date with pom.xml 错误
- 【Maven】Project configuration is not up-to-date with pom.xml错误解决方法
- Maven工程错误 之 Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0
- Maven 工程错误Could not transfer artifact org.codehaus.plexus:plexus-io:pom:2.0.1 from/to central