Press Ctrl+Shift+A to find actions, and input "reload", you will find the "Reload All Maven Projects".

On a Mac, use ++A instead.

Answer from Jacky on Stack Overflow
Discussions

java - Import Maven dependencies in IntelliJ IDEA - Stack Overflow
Used above command to force the dependencies download. ... Save this answer. ... Show activity on this post. I ran into the problem that some subdependencies couldn't be resolved in IntelliJ 2016.3.X. This could be fixed by changing the Maven home directory in Settings > Build, Execution, ... More on stackoverflow.com
🌐 stackoverflow.com
How can I make IntelliJ IDEA update my dependencies from Maven? - Stack Overflow
In the end, I had to delete the ... it's maven model. Once I did this, subsequent changes to pom.xml were picked up when I did a "Reload All Projects" so I suspect a bug where IntelliJ is using a cached model rather than updating it when changes are made. ... For some reason IntelliJ (at least in version 2019.1.2) ignores dependencies in local .m2 directory. None of above solutions worked for me. The only thing finally forced IntelliJ to ... More on stackoverflow.com
🌐 stackoverflow.com
Intellij is not download maven dependency from online, what is the solution
The issue might be that this is not a maven project, but a gradle one. More on reddit.com
🌐 r/IntelliJIDEA
8
0
December 27, 2023
java - How to force IntelliJ to download javadocs with Maven? - Stack Overflow
I have the following descriptions for some Maven entries in Project Structure: Javadoc file is really absent in filesystem. Simultaneously, it is present in central repository. Why it was not downl... More on stackoverflow.com
🌐 stackoverflow.com
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360003470680-Force-IntelliJ-to-read-local-maven-repository-when-it-loses-track-of-dependencies
Force IntelliJ to read local maven repository when it loses track of dependencies – IDEs Support (IntelliJ Platform) | JetBrains
April 17, 2019 - Also try using latest Maven version from https://maven.apache.org/download.cgi to set in IDE settings: Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Maven home directory. ... Provide idea.log after IDE restart and reproducing (re-importing in Maven window). For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service.
🌐
Wrike
ones.com › home › how to download maven dependencies in intellij: a step-by-step guide
How to Download Maven Dependencies in IntelliJ: A Step-by-Step Guide
3 weeks ago - Reload the Maven project: IntelliJ should automatically detect the changes and prompt you to reload the project. If it doesn’t, you can manually trigger a reload by right-clicking on the project in the Project view and selecting “Maven” > “Reload project”. Wait for the download: IntelliJ ...
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207280165-How-can-I-force-Idea-to-download-all-sources-of-all-Maven-artifacts-
How can I force Idea to download all sources of all Maven artifacts? – IDEs Support (IntelliJ Platform) | JetBrains
March 18, 2016 - Configure the sources as a module and use the snapshot project dependency. ... Sorry for disturb again. I don't quite get the point. Do you have any url I can refer to ? Thanks. ... You can contact support to get more details: https://intellij-support.jetbrains.com/hc/requests/new .
Top answer
1 of 16
323

IntelliJ should download and add all your dependencies to the project's classpath automatically as long as your POM is compliant and all the dependencies are available.

When importing Maven projects into IntelliJ an information box usually comes up asking you if you want to configure Auto-Import for Maven projects. That means that if you make any changes to your POM those changes will be loaded automatically.

You can enable such feature going to File > Settings > Maven > Importing, there is a checkbox that says "Import Maven projects automatically".

If that doesn't help, then I would suggest to make a full clean-up and start again:

  • Close your project window (and IntelliJ) and remove all *.iml files and all .idea folders (there should be one per module)
  • Run mvn clean install from the command line
  • Re-import the project into IntelliJ and pay attention when it asks you to enable auto-import

IntelliJ 2016 Update:

The Import Maven Projects automatically setting has been moved to Build, Execution, Deployment > Build Tools > Maven > Importing in your IntelliJ preferences.

2 of 16
77

Fix before IntelliJ 14

File [menu] -> Settings -> maven -> importing and uncheck "use maven3 to import project"

ref: http://youtrack.jetbrains.com/issue/IDEA-98425 (which may have a few other ideas too)

Fix IntelliJ 15+

Ran into this again, with IntelliJ 15 this time, which has no "use maven3 to import" option available anymore. The cause was that sometimes IntelliJ "doesn't parse maven dependencies right" and if it can't parse one of them right, it gives up on all of them, apparently. You can tell if this is the case by opening the maven projects tool window (View menu -> Tool Windows -> Maven Projects). Then expand one of your maven projects and its dependencies. If the dependencies are all underlined in red, "Houston, we have a problem".

You can actually see the real failure by mousing over the project name itself.

In my instance it said "Problems: No versions available for XXX" or "Failed to read descriptor for artifact org.xy.z" ref: https://youtrack.jetbrains.com/issue/IDEA-128846 and https://youtrack.jetbrains.com/issue/IDEA-152555

It seems in this case I was dealing with a jar that didn't have an associated pom file (in our maven nexus repo, and also my local repository). If this is also your problem, "urrent work around: if you do not actually need to use classes from that jar in your own code (for instance a transitive maven dependency only), you can actually get away with commenting it out from the pom (temporarily), maven project reload, and then uncomment it. Somehow after that point IntelliJ "remembers" its old working dependencies. Adding a maven transitive exclude temporarily might also do it, if you're running into it from transitive chain of dependencies."

Another thing that might help is to use a "newer version" of maven than the bundled 3.0.5. In order to set it up to use this as the default, close all your intellij windows, then open preferences -> build, execution and deployment -> build tools -> maven, and change the maven home directory, it should say "For default project" at the top when you adjust this, though you can adjust it for a particular project as well, as long as you "re import" after adjusting it.

Clear Caches

Deleting your intellij cache folders (windows: HOMEPATH/.{IntellijIdea,IdeaC}XXX linux ~/.IdeaIC15) and/or uninstalling and reinstalling IntelliJ itself. This can also be done by going to File [menu] -> Invalidate Caches / Restart.... Click invalidate and restart. This will reindex your whole project and solve many hard-to-trace issues with IntelliJ.

Find elsewhere
🌐
W3Docs
w3docs.com › java
Import Maven dependencies in IntelliJ IDEA | W3Docs
If the issue persists after trying these steps, you can try deleting the .m2/repository directory to force Maven to download the dependencies again. After reloading, IntelliJ IDEA will index the new dependencies and resolve any import errors in your code.
🌐
JetBrains
jetbrains.com › help › idea › work-with-maven-dependencies.html
Maven dependencies | IntelliJ IDEA Documentation
In the pom.xml file, add a dependency you need. When you change the pom.xml, IntelliJ IDEA displays a notification suggesting to load the changes. Click in the editor to import the dependency and update your project. In the Maven tool window, press .
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360006368619-maven-not-downloading-dependencies-intellij-in-windows
maven not downloading dependencies intellij in windows – IDEs Support (IntelliJ Platform) | JetBrains
October 13, 2019 - It problem remains, provide idea.log after refreshing project in Maven tool window. ... We uninstalled the IntelliJ and installed again and problem solved. It works fine. I was installing the IntelliJ to couple of my friends and all are having different issued with Windows OS. Do you think Operating system language cause for downloading the libraries?
🌐
Baeldung
baeldung.com › home › maven › force repository update with maven
Force Repository Update with Maven | Baeldung
May 11, 2024 - Whereas the -U option and purge-local-repository might resolve the corrupted dependencies without refreshing all of them, the manual delete of the .m2 local repository will cause a forced re-download of all dependencies. This can be useful when we have old and maybe corrupted dependencies. Then a simple re-package or re-install should do the job. Moreover, we can use the dependency:resolve option to solve the dependencies of our project solely. In this article, we discussed the options and goals of Maven that forcibly update our local repository.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206834305-Automatically-download-sources-documentation-from-maven-working-great
Automatically download sources/documentation from maven working great – IDEs Support (IntelliJ Platform) | JetBrains
I complain a lot on these Intellij forums. So for a change here is 'kudos' for a feature working well: Just do a "Search anywhere" (Opt-Shift-A) for "automatically download". This brings up Maven |Importing | Preferences dialog.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 8388095604754-Maven-How-to-tell-IntelliJ-to-update-its-Maven-dependencies-so-that-it-reflects-those-in-the-local-Maven-repository
Maven: How to tell IntelliJ to update its Maven dependencies so that it reflects those in the local Maven repository? – IDEs Support (IntelliJ Platform) | JetBrains
We are using IntelliJ Idea to work on a very big, multi-module Maven project which uses versioned snapshots. For updating this project, I normally use the Maven tool window to run Maven goals like "mvn process-resources" or "mvn clean install". These commands download the newest snapshots from a corporate server (Sonatype Nexus) into the local Maven repository on my PC.
🌐
Reddit
reddit.com › r/intellijidea › intellij is not download maven dependency from online, what is the solution
r/IntelliJIDEA on Reddit: Intellij is not download maven dependency from online, what is the solution
December 27, 2023 - What I did was close my IDE and create a new Maven project with the help of the intellij plugin.so it will download automatically spring dependency.
🌐
EDUCBA
educba.com › home › software development › software development tutorials › maven tutorial › maven force update
Maven Force Update | How to Update Maven using the Force option?
February 20, 2023 - For downloading and updating new dependency we need to provide the option –U with mvn clean install command are as follows. In the below example we are using –U option with mvn clean command, also we are installing updated dependencies as ...
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Baeldung
baeldung.com › home › maven › download sources and javadocs with maven
Download Sources and Javadocs with Maven | Baeldung
November 13, 2025 - For instance, in IntelliJ IDEA, we just have to go to Preference > Build, Execution, Deployment > Build Tools > Maven > importing and check the sources and documentation checkboxes:
🌐
GitHub
gist.github.com › ushkinaz › 4388198
Force IntelliJ Idea to reread all dependencies from your maven project · GitHub
Download ZIP · Force IntelliJ Idea to reread all dependencies from your maven project · Raw · reimport.sh · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.