Java Maven - 无法下载 fastxml.jackson
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28049687/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Maven - can't download fasterxml.Hymanson
提问by Eric Wang
In maven pom.xml:
在 maven pom.xml 中:
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-core</artifactId>
<version>2.5.0</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-databind</artifactId>
<version>2.5.0</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-annotations</artifactId>
<version>2.5.0</version>
<type>bundle</type>
</dependency>
This 3 libs can't be downloaded by maven, but all other libs could be downloaded successfully.
maven 无法下载这 3 个库,但可以成功下载所有其他库。
I tried this on 2 computer in different network environment, the result is the same.
我在不同网络环境的两台电脑上试过这个,结果是一样的。
Error message in eclipse:
eclipse中的错误信息:
Missing artifact com.fasterxml.Hymanson.core:Hymanson-core:bundle:2.5.0
Any suggestion on how to check why?
关于如何检查原因的任何建议?
采纳答案by Arnaud Denoyelle
<type>bundle</type>
is not appropriate here.
<type>bundle</type>
这里不合适。
Try :
尝试 :
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-core</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-databind</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.Hymanson.core</groupId>
<artifactId>Hymanson-annotations</artifactId>
<version>2.5.0</version>
</dependency>
回答by shailbenq
回答by Bordoloi Parth
I also want to add the dependency. I got the same error. once I removed line bundle. Issue resolved.
我还想添加依赖项。我得到了同样的错误。一旦我删除了 line bundle。问题解决了。