environment variables - windows 7 maven 2 install -


I am going to work through a book, "Flex on Java" and I have been asked to ask me 2 Maven will be added to Apache site:

  M2_HOME = C: \ apache-maven-2.2.1  

and

  M2 =% M2_HOME According to the instructions,% \ bin  

for the environment wires then becomes number 6, which says "In the same dialogue, in the user variable Update / Create Environment Environment Variables

Command The value % M2% .

Which environment variable should I edit and add % M2% to add the available Maven to these?

After Googling I found a post which is called "append", is not in the price of JAVA_HOME , I have tried to prepaid it and add it to Java home But when I try, command an mvn from the command line that it does not recognize.

Never before N was not used, this is my first set. Can anyone see what I am not doing or what I have to do to be able to use the mvn command, please and thank you.

You should edit the environment variable path .

The path to Windows 7 is:

Control Panel -> System -> Advanced System Settings -> Advanced Tab -> Environment Variables -> The path variable system variable field

path specifies a group of directories and / or paths that search for Windows definitions You should add at the end of this variable value for the value ;% M2% ( note semi-colon, different paths separated by them Be able to find maven command definitions).

Adding ;% M2 at the end of the path environment variable; C: \ apache-maven is -2.2.1 \ bin

To check that everything is okay, type mvn --version If everything is okay then using the current Maven version should be displayed on the screen.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -