IntelliJ IDEA update dependencies maven

problem:

IntelliJ IDEA Maven automatically load-dependent function is useful, but sometimes run into problems, leading pom file modification did not trigger an automatic reload action, this time need to manually update dependency.

method:

method one:

①, right-click the project;

②, in the pop-up menu, select Maven -> Reimport menu item.

Method Two:

IDEA will automatically download the network-dependent, and stored in a local repository in Maven. Further, Maven refresh can be set to automatically configure the method:

①, click File -> Setting menu, open the Settings tab;

②, in the left directory tree, expand the Maven node -> Importing;

③, check Import Maven projects automatically selected;

④, the project right -> Maven -> Reimport;

Guess you like

Origin www.cnblogs.com/chuanqi1995/p/11708291.html