Maven - 无法下载fastxml.jackson

Eri*_*ang 11 java jackson maven

在maven pom.xml中:

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.5.0</version>
        <type>bundle</type>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.5.0</version>
        <type>bundle</type>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.5.0</version>
        <type>bundle</type>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

maven无法下载这3个库,但可以成功下载所有其他库.

我在不同网络环境下的2台计算机上试过这个,结果是一样的.

eclipse中的错误消息:

Missing artifact com.fasterxml.jackson.core:jackson-core:bundle:2.5.0
Run Code Online (Sandbox Code Playgroud)

关于如何检查原因的任何建议?

Arn*_*lle 32

<type>bundle</type> 这里不合适.

试试:

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.5.0</version>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.5.0</version>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-annotations</artifactId>
    <version>2.5.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

  • 删除该行后它工作. (2认同)
  • 我想知道什么时候搜索maven为什么版本2.5.0,它只提供bundle选项,而不是单jar选项,这是我犯错误的主要原因. (2认同)