Solve the problem of idea's default configuration of maven warehouse address

My maven configuration address has never noticed that all jar packages and so on are the default paths of the C drive. After the imported project is changed, the project path will still become the path of the C drive when the project is imported again;

Searching online found a solution;


一、File——>New Projects Setup ———>Settings for New Projects 

(Go directly to File---Settings... - If you cannot modify it under Maven, the imported project will be changed back to the original path)

2. Search Maven

1. maven home path #Maven installation path (usually it will appear automatically after clicking the triangle button after installation)
2. user settings file #Configuration under the maven installation path (generally the settings file in the conf folder in the installation directory)
3. local repository #maven warehouse (create the repository directory under the installation directory and then reference it)

#Maven related installation and configuration information can be searched

 

3. After importing the project, check the Maven path

From Settings..., search for Maven and view the path

 

The path configuration modification is completed! 

Guess you like

Origin blog.csdn.net/qq_46476515/article/details/131509043