maven repository is moved from disk to the other disk system

maven repository is moved from disk to the other disk system

1, using the eclipse maven plugin installation, local maven repository will default on $ {user.home} /. M2 / repository, and there is no settings.xml file, so go download a maven plugin, and then extract, configure the environment variables :

New MAVEN_HOME, value maven plugin local path, I is D: \ one \ java \ apache-maven-3.3.9

 

2, after the configuration environment variable, using the transfer operation win + R, cmd type, type in cmd command: mvn -version then enter

FIG displayed as the configuration was successful.

3, maven extract the files into the folder, find the folder into the conf -> Open settings.xml file, <localRepository> </ localRepository> path instead of your own local repository path manven

4, open the eclipse -> window -> Preferences - > Search maven, press the map operation, click the Add ... before setting a good local Maven repository to import, select User Settings -> Select the local maven plugin settings.xml -> apply -> ok. Such local Maven repository on the system tray to move from the other disk.

 

Guess you like

Origin www.cnblogs.com/xiechaungblogs/p/11579835.html