Eclipse configuration Android SDK and Maven

Source: Internet
Author: User

Download First

Adt-22.2.0.rar

Eclipse-jee-kepler-r-win32-x86_64.zip

Android Sdk4.2.zip

Separately extracted in a disk

Copy the contents of the two folders in ADT to Eclispe

Start Eclipse Window --Preferences

Click on Android to select your SDK directory

This is where Android can be developed.

Configure MAVEN below

MAVEN3 Installation:

before installing Maven, you need 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 the download is done, unzip it, I rename the extracted folder to maven and place it in the D:\Server directory, where Maven's final 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 that we all have to match the environment variables, the detailed steps will not say, to the attribute name and attribute values to match the OK.

Open cmd, knock inside: mvn-version



If you can print the information above, it means that the MAVEN3 has been installed on your PC.
MVN is a mavn instruction, mvn-version is to view the version information, my operating system is 32-bit WIN7, the installation of MAVEN is 3.0.4

If you can print the information above, it means that the MAVEN3 has been installed on your PC.


To modify the MAVEN repository storage location:

Find the Settings.xml configuration file under Maven under Conf, mine is in D:\Server\maven\conf\settings.xml



The MAVEN repository defaults to the. M2 folder under the local user's Temp folder under Repository, mine is under the C:\Users\admcnm\.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:\Repositories\Maven directory, just open the local repository that was logged off.

Then write the corresponding path value in it:


OK, first to experience maven, knock in CMD and enter to execute: 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 that in eclipse you need to install a lot of plugins, such as MyEclipse, a highly integrated tool,

Or do not use too much as well, I am just saying, as to choose Eclipse or myeclipse or to see oneself or the environment to choose, on the above when I was 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, which seems to be the most used, that is: Help-and install New software, and then enter the HTTP address for installation, but there is a very obvious drawback, is slow!
2. One is off-line installation, the way to install the link, this way can be better, can be plugged in and unplugged at any time, 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, then wait for it to download and install, then restart Eclipse after completion.
2. Here I do not say the type of online installation, for two reasons: first, after installation is not good management; second, the download is too slow; what I'm going to say next is to use the link method to install the Maven3 plugin offline.

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 compiled MAVEN's offline packages for people who need them to download,

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

Link installs Eclipse maven plugin offline

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

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

3. In the links directory, create a maven.txt (name can be arbitrarily), open and enter: Path=d:/ide/helios/eclipse/myplugins/maven (please refer to the above corresponding to your MAVEN plugin)

4. Save the shutdown maven.txt and change the suffix to Maven.link to restart eclipse (if 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 to select the path value of your native MAVEN installation




2. Click the Browse button, select your Maven setting.xml profile, then click OK to complete the configuration of the Eclipse Maven plugin


Eclipse configuration Android SDK and Maven

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.