IDEA using the mvn command in terminal

 

ALT + F12 shortcut to open the terminal window

 

When Terminal end-use idea of ​​using the mvn command, the command can not be found. Internet to find a solution as follows:

1. Modify the File-> setting> Terminal "to modify the shell path system cmd.exe command position (typically c disc windows / system32)

2. Modify the cmd command, shut down the latest features, enabled the old characteristics, reboot idea (idea restart method to find the file --invalidate cache / restart into the restart window)

3. Add M2_HOME, said that some of the works does not recognize MAVEN_HOME path (this bit I do not know why)

4, your idea installation directory + \ plugins \ maven \ lib \ maven3 \ bin copied to the system environment variables in the path

5, restart the computer

OK to open the terminal window, enter mvn have the effect of

 

Published 168 original articles · won praise 16 · views 90000 +

Guess you like

Origin blog.csdn.net/ajax_yan/article/details/104550310