Step 1:

Open the project's folder, then go to : .idea/libraries/ you should find here a file by maven dependency. Delete the jackson-core and jackson-databinding files.


Step 2: Remove maven dependency

Remove the two dependencies from `pom.xml' file. (do not comment out, erase the lines).


Step 3: Check Intellij project config

Open project structure windows (clic on the top parent folder in Intellij then press F4), then go to Libraries tab. ensure the two dependencies are not present, if there are, delete them as well (with the '-' button at top).


Step 4: Remove all cached maven libraries

Go to your home folder, for windows : C:\Users\<YOUR_NAME>\.m2\, here remove the repository folder.


Step 5: Reimport the project

In intellij : Right click the top folder of your project then > Maven > Reimport.


Step 6: Add maven dep

Add your two dependencies to pom.xml.


Step 8: Build your project.

Launch your project.



This should work.

Answer from Anthony Raymond on Stack Overflow
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 4403516074258-External-Libraries-do-not-update-when-changing-Spring-Boot-Gradle-plugin-version
External Libraries do not update when changing Spring Boot Gradle plugin version – IDEs Support (IntelliJ Platform) | JetBrains
Hello Andrey Dernov That was an excellent suggestion! I disabled the Scala plugin, then deleted both .idea directory and .iml file and after I recreated all the project from the existing sources. It worked. I have now the right Spring Boot dependencies in the « External Libraries » section of the project.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 17471309716370-wrong-version-of-jar-used-when-running-program-in-IDE
wrong version of jar used when running program in IDE – IDEs Support (IntelliJ Platform) | JetBrains
March 5, 2024 - Actually a wrong version of guava is used. According to the pom version 28.0-jre should be used. It's only used from transitive dependencies, other transitive dependencies are for version 16.0.1 and 14.0.1 · Under external libraries for the project the versions 28.0-jre, 21.0 and 11.0.2 are listed.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207108385-IntelliJ-not-able-to-resolve-classes-of-external-Libraries-for-Maven-projects
IntelliJ not able to resolve classes of external Libraries for Maven projects – IDEs Support (IntelliJ Platform) | JetBrains
February 2, 2016 - 3. External dependencies shows everything, it could be that the dependency is added to some other module and the module that has the problem doesn't have this specific dependency for some reason.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360010182139-IntelliJ-Maven-Project-defaults-to-incorrect-dependency-versions
IntelliJ Maven Project defaults to incorrect dependency versions – IDEs Support (IntelliJ Platform) | JetBrains
For example, there is one project I work on daily which uses 2 different versions of the same dependency in different modules. Module A uses version 2.2, while module B uses version 2.3. In this case, I would expect IntelliJ to use version 2.2 while I edit/compile files in module A, and version 2.3 while I edit/compile files in module B.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206633455-Duplicate-library-dependency-after-version-change
Duplicate library dependency after version change – IDEs Support (IntelliJ Platform) | JetBrains
June 30, 2015 - I managed to have the proper dep resolved on the 3rd attempt at removing manually the older deps from the project structure (right click on any External library -> Open Library Settings (F4)). Dunno why the previous attempts failed. And still I'm sure that older maven deps will come back somehow as soon as I do any change to my project poms. ... Same here, very annoying. Still persist in 2020.3. My tests are going completely mad. ... IntelliJ IDEA 2020.1.2 (Community Edition) Build #IC-201.7846.76, built on June 1, 2020 Runtime version: 11.0.7+10-b765.53 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Find elsewhere
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-311323 › External-Libraries-occur-in-multiple-versions-when-loading-from-Gradle
External Libraries occur in multiple versions when loading ...
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 10347092032146-External-Lib-showing-up-but-I-can-t-import-it
External Lib showing up, but I can't import it – IDEs Support (IntelliJ Platform) | JetBrains
Hi IntelliJ Support, I have an old library that we built, called traac-core. It has jackson 2.7.2 as dependency, which has vulnerability issue. The old version is 2.4.0. So I've update that to the ...
🌐
Kotlinlang
slack-chats.kotlinlang.org › t › 495192 › why-would-intellij-be-displaying-an-old-version-of-a-library
Why would IntelliJ be displaying an old version of a library kotlinlang #intellij
June 17, 2022 - Why would IntelliJ be displaying an old version of a library that's no longer used by direct or transitive dependencies (under "External libraries")? It persists after doing a restart and rebuild, and refreshing Maven indices.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360010618919-IntelliJ-Idea-not-removing-external-libraries
IntelliJ Idea not removing (external) libraries – IDEs Support (IntelliJ Platform) | JetBrains
April 21, 2021 - To fix this I tried: - manually deleting those libraries in IntelliJ: this works until the next 'reload' which load all the versions you ever entered - manually deleting the .iml file: as soon as this file is recreated, the problem returns - ...
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206293129-IntelliJ-uses-wrong-version-of-Maven-managed-dependency
IntelliJ uses wrong version of Maven-managed dependency – IDEs Support (IntelliJ Platform) | JetBrains
January 20, 2009 - Is it possible this is an IntelliJ bug? When I carefully renamed/tweaked the 3.1-FINAL and 3.2-FINAL version files to be 3.1 and 3.2 (I also changed the archetype .pom and .pom.sha1 file for each version), then IntelliJ did the right thing when I changed the version string in the project pom.xml.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206903515-Not-all-Maven-dependencies-appear-in-External-libraries
Not all Maven dependencies appear in "External libraries" – IDEs Support (IntelliJ Platform) | JetBrains
March 29, 2012 - Maybe something broken while doing this. Finally I resolved this problem by doing as following · 1. Manually add the required library to project: File > Project Structure... > Libraries > press the "+" button (see the picture below) ...
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206227949-Define-which-library-s-source-version-is-used-in-debugging
Define which library's source / version is used in debugging – IDEs Support (IntelliJ Platform) | JetBrains
June 20, 2012 - When I put a breakpoint in one of the classes, during debugging, Idea takes the first library (I think alphabetically), which in this case is unfortunately wrong. The thing is, the libraries from all modules seem to be mixed in one bag for the whole project, not scoped per module, and idea lists the multiple versions there (again, from multiple modules).
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-255594
Intellij keeps old dependencies : IDEA-255594
July 21, 2022 - {{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
Stack Overflow
stackoverflow.com › questions › 49748701 › i-use-inteliji-and-i-deleted-a-version-of-external-library-by-mistake-how-do
intellij idea - I use Inteliji , and i deleted a version of external library by mistake , how do i get it back? - Stack Overflow
I use Inteliji IDEA for a scala project and this has some external library ,say x it has x-2.00 and x-2.02 , i deleted x-2.02 mistakenly , now how do i get this back ? OS : MAC ... Every change you make is stored locally by IntelliJ in the "Local History".
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-176131 › External-libraries-doesnt-get-downloaded-when-importing-projects
External libraries doesn't get downloaded when importing ...
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong