Intellj IDEA sets the default maven version

Intellij IDEA use tutorial related series catalog

problem

I recently updated to a new version of Intellij idea and found that there are always problems with the version configuration of maven. Idea comes with two versions of maven by default, plus the maven version configured by yourself, there are a total of three versions.

Intellij always selects its own Maven3 by default every time it starts. Because I placed the local maven warehouse in another path. In this way, the dependent jar package will be re-downloaded in the default .m2 directory every time it is started. Two copies of the same jar package appeared.
Write picture description here

solution

Select File, Other setting, Default Setting in turn, find the maven configuration, select the version that needs the default configuration, and save. This completes the configuration of the default maven version.

Write picture description here

Guess you like

Origin blog.csdn.net/shi_hong_fei_hei/article/details/112637385