Search code examples
springspring-bootintellij-ideaide

Intellij IDE not downloading dependencies after pom update


I'm using Intellij IDE for Spring projects. Whenever I add a dependency in pom file, it's not downloading it. In the case of Eclipse IDE, it automatically downloads the dependency whenever a dependency is added in pom.xml file.

enter image description here

I added the highlighted dependencies in the pom.file but it's not downloading. How to configure the IDE for auto-download dependencies whenever the pom.xml is updated?


Solution

  • In Eclipse project build automatically it that option is enabled as build automatically

    but idea we can not load maven dependency just by adding it in pom.xml but we can build the project by

    IntelliJ Idea - Preferences

    Select “Build, Execution, Deployment -> Compiler” -- build Project automatically

    Above will build the project but it will not download the dependency We have to click reload all maven project icon under maven tool window which can be activated by view - Tools Windows - maven