The problem background

Idea was in normal use yesterday, but today it turns out that dependencies in POM files don’t download automatically.

The solution

Setting — > Maven — > Remove work Offline check.

If this isn’t the problem, try some of the other fixes I’ve covered below, especially updating commands for incomplete dependencies.

why

Baidu found that the display of Intellij idea setting may be wrong or the computer runs for too long. After several times of restarting Intellij IDEA and Invalidate caches/Restart, it found that the check box of Work Offline was selected.

Other solutions

1.  Settings -> Build,Execution,Deployment -> Build Tools -> Maven -> Ignored Files

If this place is checked, it’s off.

  2.  Settings -> Build,Execution,Deployment -> Build Tools -> Maven -> Importing,

Check these two places.

  1. Update incomplete dependency commands

Click ①, then select your project in ②, type -u idea:idea in ③, then click Execute.