Installation and configuration of the Eclipse Maven plugin

Source: Internet
Author: User

MAVEN3 Installation:

Before installing Maven, it is required to make sure that your JDK is installed and configured. MAVEN is a project under Apache. Now the latest version number is 3.0.4. 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 concrete steps will not be said. OK to match the property name with the attribute value.

Open cmd, knock inside: mvn-version



Assuming that you can print the information above, the MAVEN3 is already installed on your computer.
MVN is a mavn instruction, mvn-version is to view the version number information, my operating system is 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. You only need to open the local repository that you logged out of.

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 starts downloading a whole bunch of stuff from the remote repository, okay. Let it download, download it sooner or later, and then install the Maven plugin 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 don't 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 to select, it is the top of my nonsense. Good. Say the right thing,

There are two of the most common ways that Eclipse installs plug-ins:
1. One is an on-line installation. This seems to be the most used, that is: Help--Install New software. Then enter the HTTP address to install, but there is a very obvious disadvantage. It's slow!
2. One is an 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 who will, just enter the HTTP address:http://m2eclipse.sonatype.org/sites/m2e. Hook up the options. Then wait for it to download the installation, and then restart Eclipse when it is finished.
2. Here I do not say that the above the kind of online installation, for two reasons: first, after installation is not good management; 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 MAVEN plug-in 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 in: 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 your 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 the Add button. Select the path value of your native installation maven




2. Click the Browse button. Select your Maven setting.xml profile and click OK to complete the configuration of the Eclipse Maven plugin


Installation and configuration of the Eclipse Maven plugin

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.