Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven - can't download fasterxml.jackson

In 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>

This 3 libs can't be downloaded by maven, but all other libs could be downloaded successfully.

I tried this on 2 computer in different network environment, the result is the same.

Error message in eclipse:

Missing artifact com.fasterxml.jackson.core:jackson-core:bundle:2.5.0

Any suggestion on how to check why?

like image 466
user218867 Avatar asked Jan 20 '15 15:01

user218867


1 Answers

<type>bundle</type> is not appropriate here.

Try :

<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>
like image 73
Arnaud Denoyelle Avatar answered Oct 26 '22 12:10

Arnaud Denoyelle