Eclipse Maven Plugin plug-in installation and configuration

Source: Internet
Author: User

Environment Preparation:
Eclipse (Helios) 3.6
Maven 3.0.4

MAVEN3 Installation:

before installing Maven, it is required to make sure that your JDK is installed and configured. MAVEN is a project under Apache, and the latest version is 3.0.4, and that's what I'm using.

First go to the official website to download maven:http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz

After downloading it, unzip it, I renamed the extracted folder to Maven, and put it under the D:\Server folder, that is, Maven finally path is: D:\Server\maven


To configure the MAVEN environment variable:

System variable: maven_home = D:\Server\maven

User variable: path =%maven_home%\bin

I believe we all have to match the environment variables. The specific steps are not said, to the attribute name and attribute values to match the OK.

Open cmd, knock inside: mvn-version



Assuming that you can print the information above, the MAVEN3 is already installed on your computer.
MVN is an instruction of Mavn. Mvn-version is to view the version number information. My operating system is a 32-bit WIN7. The installation of MAVEN is 3.0.4

Assuming that you can print the information above, the MAVEN3 is already installed on your computer.



Change Maven Repository storage location:

Locate the Settings.xml configuration file under maven under Conf. Mine is in D:\Server\maven\conf\settings.xml.



The repository for MAVEN is placed below the temporary directory of local Users by default. m2 directory under Repository, mine is under the C:\Users\admcnm\.m2\repository directory,

Now let's change to assign it to our own path, and now I'm going to assign the warehouse to the D:\Repositories\Maven folder. Only need to open the local repository that was logged off

Then write the corresponding path value into it:


OK, first to experience maven, knock in Cmd and return to run: mvn help:system

This is when Maven downloads a whole bunch of stuff from the remote repository, it's okay, it's downloaded, it's going to be downloaded sooner or later, and then the MAVEN plugin is installed in eclipse.

One of the most obvious differences between using eclipse and using MyEclipse is. In eclipse, you need to install a lot of plugins, such as highly integrated tools like MyEclipse,

Or do not use too much as well. I'm just saying, as to whether to choose Eclipse or MyEclipse or to look at yourself or the environment for the choice, it's as if I'm talking nonsense. Well, that's a good thing.

There are two of the most common ways that Eclipse installs plug-ins:
1. One is the online installation, this. It seems to be the most used. is: Help--Install New software, and then enter the HTTP address installed, but there is a very obvious drawback, is slow!
2. One is off-line installation, the way to install the link, such a way to pull better, can at any time plug-in and unplug. Very convenient.


Eclipse MAVEN3 Installation:

1. Use the first way to install anyone, just enter the HTTP address:http://m2eclipse.sonatype.org/sites/m2e, tick the option, and wait for it to download the installation, and then restart Eclipse We can.


2. Here I do not say that the above the kind of online installation, for two reasons: first, after installation is not good management. Second. The download is too slow, and what I'm going to say next is to install the Maven3 plugin offline using the link method.

The website does not provide the MAVEN plugin offline installation package, general, you search on the Internet. Lucky words should be able to find. I've sorted out MAVEN's offline installation package. For those who need to download,

You can find the link in the left sidebar of my blog, you can also directly click here to download the link: http://115.com/file/dpk80gj0#eclipse-maven3-plugin.7z

Link installs Eclipse maven plugin offline

1. Create two directories in the root directory of your eclipse installation: Links,myplugins (name can be taken casually). My two directories are located at: d:/ide/helios/eclipse/(as a reference, the following)

2. Extract the downloaded eclipse-maven3-plugin.7z from my 115 network disk to the Myplugins folder

3. Create a maven.txt under the Links folder (the name can be taken casually), open and enter: Path=d:/ide/helios/eclipse/myplugins/maven (please refer to the corresponding Maven plugin above)

4. Save the shutdown maven.txt and change the suffix to Maven.link to restart eclipse (assuming your eclipse is not on, just open it)

Check if the Maven plugin for Eclipse is installed Success : Window--Preferences




To configure MAVEN:
1. Click on the Add button to select the path value of your native MAVEN installation




2. Click on the Browse button to select your Maven setting.xml configuration file. Then click OK, and that's it. Configuration of the Eclipse Maven plugin


Eclipse Maven Plugin plug-in installation and configuration

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.