web应用运行maven 一直报错,
然后就开始查找那个包下载不下来,发现 javax.jms 这几个包,有3个,
然后就找一下,是哪个包引用了 这个包,发现是log4j. 我试着把log4j从原来的 1.2.15改为 1.2.17
可以下载了
网上百度了一下,很多人遇到相同的问题,,推测可能 1.2.15 或者 1.2.16 这两个版本有问题,所以建议大家使用1.2.17 这个版本
[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: