Reputation: 195
I build a maven project and get an error on pom.xml Missing artifact in some dependencies. How can I resolve it?
Upvotes: 3
Views: 17110
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
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
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