Found many installation tutorials on the Internet. Some places are quite inconsistent.
For example, in the context of environmental configuration:
Some have to do this: (1)
maven_home:d:\apache-maven-3.0.2
MAVEN:%maven_home%\bin
(optional) Maven_opts:-xms256m-xmx512m
Some are: (2)
maven_home:d:\apache-maven-3.0.2 alone
After I install found just follow (2) can. But add%maven_home%\bin to the path.
My environment settings:
%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\; C:\Program Files (x86) \microsoft Asp.net\asp.net Web Pages\v1.0\; C:\Program Files\Microsoft SQL Server\110\tools\binn\;%java_home%\bin;%maven_home%\bin
Another point is Maven's download:
I see more is about 3.0.5 so the first download of this version of the binary file, but after the decompression does not appear in the online installation steps of the bin file. Some of the internet said that the download did not complete (but can be decompressed), some say it is extracted from the problem (have been decompressed several times did not appear bin).
At this time I downloaded the src version of Maven Blind, found the so-called bin file also confirmed that the bin has mvn.exe. However, entering mvn-v in CMD will cause an error.
This problem is also encountered on the Internet. interpreted as a download or decompression error. So later download the newer version of 3.2.5, change the environment after the run as follows
Finally, the installation was successful.
About the installation of Maven