General steps for importing an open source project into eclipse

Source: Internet
Author: User

               General steps for importing an open source project into eclipse

Zhou Banhui

After downloading to the open source project, we still want to import into eclipse also see, this is convenient point, the general step is like this

Open the source code directory,

    • If you see a . Calsspath project file in it, then it means that the project was originally developed by Eclipse, so the existing project, import-and-file, in eclipse
    • If you see that you have build.xml, then this project is ant build, refer to the following "about importing Ant project"
    • If you see a pom.xml file in it, it means that the project was built by MAVEN, referring to the "about importing Maven project" below
    • For the rest, create a new project, import the source code

About importing Ant projects

This is relatively simple, open eclipse, file--New project (yes, you did not read wrong, is the new is not imported)

Select "Create a Java project from an existing ant build file", then next, take a project name and specify where the Build.xml is located.

About importing MAVEN projects

MAVEN is a build tool that can imagine imaging make, clearmake, ant

First you will install Java, and then:

1, download

Here http://maven.apache.org/download the tarball and unzip it to a directory

2, configuring environment variables

Open the environment variable setting to add the Maven installation location to path, such as my path:

C:\jdk1.8.0\bin\; C:\Program Files (x86) \apache-maven-3.2.1\bin

Then open a new cmd, input mvn-v can see the version information is OK

3,maven after installation, to the source code directory, open cmd, enter mvn eclipse:eclipse, carriage return, this time, MAVEN will convert the MVN project under this directory to Eclipse project (after conversion is complete, You will find that the project directory is a lot more. Calsspath. project file), this time you can go back to the first situation mentioned above, directly imported.

In addition, MAVEN has an Eclipse plugin, which can be found in the market by tapping Eclipse Marketplace under the Eclipse's Help menu.

You can then import the MVN project by using the graphical interface to import the

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.