WINDOWS10, eclipse Kepler configuring the MAVEN environment

Source: Internet
Author: User

The configuration of the MAVEN environment requires that the Java environment be configured first.

First, in the WIN10 configuration maven environment, need to download maven compressed package, official website http://maven.apache.org/download.cgi, I choose to download is a second

After the download is complete, unzip the package to the specified path, I unzip to the D drive

Next, configure the environment variables

Right-click My Computer, properties, advanced system settings, environment variables, new Maven_home (the variable value is the path to the extracted MAVEN file) and maven_opts (variable value-xms256m-xmx512m) as

Finally, add%maven_home%\bin in path;

This completes the MAVEN environment configuration. The next step is validation.

Open cmd command line input maven-version, display the relevant version information is configured successfully.

(You can modify the library file path first, see the next step) next, in the command line input mvn Help:system, let it configure the local library file, MAVEN library by default is placed under the local user's temporary folder under the. M2 folder under Repository, wait for the download to complete, less this step , the late use of the process may be inexplicable error, the reason is that may be related to the patch download is not complete.

You can modify the MAVEN Repository location: Locate the settings.xml configuration file under maven under Conf and the configuration file exists in the previous decompression path

The MAVEN repository defaults to the local user's temporary folder under the. M2 folder under Repository, mine is under the C:\Users\Administrator\.m2\repository directory,

Now let's modify to assign it to our own path, I'm now going to assign the repository to the D:\SDK\as directory, just open the local repository that was logged off.

Then write the corresponding path value in it:

Here, the entire Windows configuration is complete.

Second, eclipse configuration maven, I am using the Eclipse Kepler version, Eclipse 4.4 or later version comes with Maven plugin

Open Eclipse, Help, Install New software, add in the Address bar, enter http://m2eclipse.sonatype.org/sites/m2e, select the search option, and then click Next. Click Confirm, wait for the download to complete and restart.

After the reboot is complete, right-click the project to see the MAVEN options.

WINDOWS10, eclipse Kepler configuring the MAVEN environment

Related Article

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.