Idea creates maven configuration for new projects every time

Every time you open a new file, you must reconfigure the address of maven. This time, reorganize the configuration issues related to maven and idea.

first of all

Maven configuration problem every time a new project is created

New file configurationinsert image description here
After setting this, you don’t have to worry about maven every time you create a new project

Question about why it is the default .m2

The picture above is a picture stolen from other people's blog. Let's take a look, it should be the case for most people.
As far as I know, this thing comes from your own idea.
insert image description here
insert image description here
Open this settings.xml
and search globally.m2

/.m2/settings.xml

insert image description here

/.m2/repository

insert image description here

Revise

insert image description here

 <localRepository>D:\apache-maven-3.6.3\repository</localRepository>```

About other configurations

insert image description here

Guess you like

Origin blog.csdn.net/m0_54765221/article/details/128565375