About the installation of Maven

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.