Mac maven environment configuration command

1 . Installation: unzip the downloaded file maven, unzip the file you want to clip underneath. 

2 . Configuration

   1) input commands to open a terminal ~ Vim / .bash_profile (editing environment variable configuration file)

   2 ) Press i, enter the edit mode

   3 ) add the following configuration file in the environment variables 

       Export MAVEN_HOME = MAVEN_HOME = Export / the Users / Colo / mysoft that / Maven
 
       Export the pATH = the pATH $: $ MAVEN_HOME / bin 

       the PS :( can drag files directly to the inner terminal can be displayed file path)

   4 ) input: wq exit and save the current file

   5 ) input source. bash_profile, press the Enter key to bash_profile take effect. 

  6) Enter mvn -v, i.e., the results shown below indicate successful configuration

 

Guess you like

Origin www.cnblogs.com/coloz/p/11106310.html