aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes maven configuration error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven configuration error" Watch "maven configuration error" New topic
Forums: Ant, Maven and Other Build Tools General Computing
Author

maven configuration error

umesh annegirikar
Greenhorn

Joined: May 09, 2011
Posts: 28

Hello i am new to maven i have downloaded the maven and extracted it on my laptop's C drive in the following path

C:\apache-maven-3.2.1
then after i am trying to configure it on windows for that i have follow the below steps
1)Creating the two system variable M2_HOME and M2 and given values as C:\apache-maven-3.2.1 and %M2_HOME%\bin
2)edit the value of path variable from C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;%JAVA_HOME%
to C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;%JAVA_HOME%;%M2%

and when on my console to check the configuration when i type mvn --version then it shows the error that mvn is not recognized as internal or external command so please let me know what is wrong
please tell me this as i am getting stuck since last 2 days i have also trying to check the log but don't found any log for the maven in installation directory

Regards,
Umesh Annegirikar
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

The problem is the environment variable, not maven. One common problem is that terminal window/command prompt that you opened before setting the PATH will remain unchanged after any configuration made (one new terminal window will reload the new definitions). Another common error is a typo. For this problem, try first to run the environment definition statement in the terminal window and check if it works fine.


Please, visit me for some cool tech post at www.ourdailycodes.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maven configuration error