Jerry
Jerry

Reputation: 195

Missing artifact com.fasterxml.jackson.core:jackson-core:jar:1.9.11

I build a maven project and get an error on pom.xml Missing artifact in some dependencies. How can I resolve it?

enter image description here

Upvotes: 3

Views: 17110

Answers (3)

Prashant Biradar
Prashant Biradar

Reputation: 11

From the Two Maven Dependencies

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.13.2</version>
        <type>bundle</type>
    </dependency>

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.13.2.2</version>
        <type>bundle</type>
    </dependency>

Remove the bundle tag from both the dependencies and keep the version almost same it will work else it will show the above mentioned error.

Upvotes: 1

MR AND
MR AND

Reputation: 406

You have to specify property of the jackson.version and this can be done by adding the section shown below:

<properties>
<jackson.version>2.10.0</jackson.version>
</properties>

The version has been updated as per the recent documentation from Maven.

Upvotes: 1

Micho
Micho

Reputation: 3963

I cannot see the value of ${jackson.version} on your image, but from the title of the question I assume it's version 1.9.11 you're looking for. If you check in any of the multiple maven repository viewers, like maven central, you'll see that version is not present, and therefore maven cannot resolve that dependency. Click this link to see the versions available in maven central.

You must choose an existing version from the central repository or, if you have version 1.9.11 in another repository, include that repository details in your pom.xml file.

Upvotes: 3

Related Questions