Maven Tutorial Three: Eclipse,myeclipse installation configuration maven

Source: Internet
Author: User

MyEclipse comes with a maven plugin, but it's a bit different from the native plugin, and this article describes the installation and configuration of Maven for Eclipse.

1. First you need to install jdk,myeclipse (nonsense. )。

Then go to Maven's website to download maven,http://maven.apache.org/download.html

I downloaded the 3.0.5.

2. Unzip the package, do not include Chinese in the path, I unzipped the path is D:\JAVA\apache-maven-3.0.5

New environment variable M2_home point to D:\JAVA\apache-maven-3.0.5

Add in path;%m2_home%\bin;

Open cmd, enter: Mvn-version, can display the following information, indicating that MAVEN installation is successful

2.2 Configuring Maven

2.2.1 Configuring the Local Warehouse

First find the Settings.xml file under the Conf path of the MAVEN decompression directory, locate the <localRepository></localRepository> node, remove the comment from this node, and add the local repository path.

Figure below

3. Next is the MAVEN plugin that installs MyEclipse.

Because the domestic often by the wall, so here to introduce the offline installation method, offline plug-in package can be downloaded from here http://ishare.iask.sina.com.cn/f/36090147.html, thank you for the contribution of the uploader.

3.1 Creating a link file point to plug-in location (recommended)

3.1.1. Unzip the features directory and plugins directory under the file to any location, I unzipped the location is D:\JAVA\MyEclipse\MyEclipse 10\dropins\maven

3.1.2. Create a new text document in the Dropins directory under the MyEclipse installation directory and rename it to Maven.link.

3.1.3. Edit the Maven.link file, enter Path=d:/java/myeclipse/myeclipse 10/dropins/maven. Reboot.

4. Configure the Maven plugin

Open MyEclipse, find this place.

Click Add to find your Maven installation directory, then click Apply

Then find the user settings

Click the browse button to find your Maven Setting.xml

Finally click OK to complete the configuration

Reprint please retain the source http://www.cnblogs.com/timeng/archive/2013/05/07/maven_install.html

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.