Eclipse uses git plugin to import MAVEN project on code cloud

Source: Internet
Author: User

The first few days into the company, because before the SVN has not used git and no one to guide, so looked up a lot of information is not in line with my project experience at the time, and finally in each article splicing useful information to solve the problem;

A, the first project in the open source China's code cloud (domestic version of GitHub), is through the git to manage, need to network download;

b, then the project is MAVEN engineering

Steps:

1, first of all your eclipse to have git plug-ins, high-version git will have;

If you do not install it yourself (https://jingyan.baidu.com/article/6b97984dc0bfaa1ca2b0bfee.html)

2. Copy the URL of your project on the Code cloud

(The way I used the https://)

-----------------------------------------------------------------

3. Import project in Eclipse, select the way to use Git

4. Select the Clone URL

5, fill in the second step to copy the URL

6. Select a branch (there may be multiple branches)

7. Select the location where the code needs to be saved

8, choose to build a new project

(If you are prompted in the next step that the project is already in place, "I think this is a bug", then go back to this to check the first one)

Behind always Next

The project will eventually appear in Eclipse, and if it does, the project icon will automatically turn into Maven's icon and build a dependency,

But there are cases where the folder icon is displayed after downloading.

You can do this by doing the following:

A. Turn the project into a MAVEN project

(You don't have to do this if you have a maven icon)

b, if the project Maven dependency does not automatically load well

Need to right-click on the project->import->maven, and then browse to the local project, then there will be selected Pom interface, check all the POM.XM after the finish is OK

Eclipse uses git plugin to import MAVEN project on code cloud

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.