Getting Git Projects to Eclipse & Maven

One way to learn what is happening in open source Java world is following the trends. It is also one of the few places where you can work with enthusiastic engineers that you cannot work in your professional life.
While I was skimming through them, a project got my attention. That would be my first attempt to put my hands on the code so I was unaware of the check out procedure. I have Eclipse Neon and know a few things about Maven and git. So I could easily get the code and run it with Eclipse and Maven. As it turned out, it was not as easy as that.

Checking out Maven Projects

The Maven GitHub can be checked out by using Maven New Project wizard inside Eclipse. To do that, first, be sure that your Eclipse installation contains the Maven plugins. I almost always use the Eclipse IDE for Java EE Developers and that includes necessary packages for Maven integration.

Importing the project

Importing the project from GitHub.

Check out

Checking out a Maven project.

Missing SCM

Here, there is a problem. By default, there is no Source Control Manager connector in Eclipse or in its plugins. It is the reason that makes the combobox before the URL empty. Without a proper connector, we cannot check the projects out of that manager.
As you can also see, there is a not about it on the lower right corner. It informs us that we can download connectors from Marketplace. That is where we will look for the git connector.

git connector

m2e-egit is the one that we will install. To me, a few connectors like for git or SVN should come preinstalled but at least there exists a solution.

Installation

Standard installation procedure for Eclipse plugins.
After the installation, we can see the git connector inside the SCM combobox. As the URL, we input the git repository.
However, we cannot get the projects instantly. Before that, there is a one more step to make the whole thing work seamlessly. Eclipse helps us on the following adjustments as you can see below:

The SCM
Maven plugin connectors
Extension Installation
Installation Details
Licenses

After all these, we can check out the projects inside our specified GitHub repository. Here are the projects:

The projects

The EGit User Guide is my primary knowledge source about working on GitHub with Eclipse. Moreover, I got great help from Stephen’s Blog. He talks about other problems that he encountered so may be you also would like to check that post too.

Advertisements

%d bloggers like this: