IBM DevOps Services- application code not showing in Eclipse Explorer if Git repository was cloned with Import using the New Project wizard option

I am developing a node.js application using the MongoDB as the back end database. As for source control instead of using the Rational Team Concert, I decided to use Git repository instead. Since I am using Eclipse for my node.js application development, I have to install the EGit plug-in. Through the EGit plug-in, I will be able to synchronize my local eclipse workspace, push my changes, download my changes, merge my changes, and etc. into the cloud. (Note: for more information, see how to use EGit in Eclipse)

From my observation, I really like the existing documentations and tutorials that the IBM DevOps Services team made available. I find the instructions for how to install the EGit plug-in for Eclipse to be very straightforward and easy to follow. However, I also found that a few steps are not working quite right. Therefore, I decided to capture all the steps that I have followed along with issues that I found on some of the step and provide you with the workaround in this blog post over here.

Issue:    Cloning Git project and  Import using the New Project wizard. After the import is completed. Eclipse’s project Explorer tab is showing none of the files. What I am seeing is an empty project with none of the application code in side

Workaround: If you want the application code and its directory hierarchy structures to show up in Eclipse Project Explorer, Select a wizard to use for importing project to Import as general project

Environment

Eclipse Java EE IDE for Web Developers

Version: Luna Service Release 2 (4.4.2)

Build id: 20150219-0600

Note: Only follow my instructions if you are using Eclipse 4.2.2 or later

To installed the EGit plug-in (I am referencing the following steps from Setting up local clients to work with the local Git source control)

  1. In Eclipse, check Help > Install New Software
  2. In the install window, complete these steps
  3. In the work with field, enter http://download.eclipse.org/egit/updates and click .. and enter a name for this install repository.
  4. In the Eclipse Git Team Provider section, select only the Eclipse Git Team Provider check box.
  5. Click Next and click Next
  6. Review the license terms. If you agree to the terms, accept them.
  7. Click Finish to install the plug-in.
  8. If you see a security warning message, click OK.
  9. If you are prompted to restart Eclipse, click Yes.

Connect EGit to my Bluemix DevOps Services project

  1. In Eclipse, click Eclipse > Preferences > General > Workspaces. In the Text file encoding field, click Other and from the list, select UTF-8.

Version 3

  1. In Bluemix DevOps Services, browse to your project page.
  2. Copy the Git URL from the right side of the page.
    Note: DevOps Services only supports the HTTPS protocol for Git URLs. The SSH and Git    protocols are not supported.

backRoadCycling_-_IBM_Bluemix_DevOps_Services

  1. In Eclipse, click File > Import.
  2. In the Select an import source field, click Git > Projects from Git, and then click Next.
  3. Select Clone URI and click Next.

Import_Projects_from_Git_and_Git_-__Users_Oyster_git_doc_testing_cyclingTrainers_app_js_-_Eclipse_-__Users_Oyster_Documents_BlueMix_workspace

  1. In the URI field, paste the Git URL.
  2. In the Authentication section, enter your alias and IBM id password, and then click Next.
  3. Select the branches to work on and click Next.

Import_Projects_from_Git (1)

  1. If necessary, update the local destination of the cloned repository and click Next.
  1. Click Import using the New Project wizard and click Finish.

Cloning_from_https___hub_jazz_net_git_patchaneeoy_chatPage

Issue:    Cloning Git project and  Import using the New Project wizard. After the import is completed. Eclipse’s project Explorer tab is showing none of the files. What I am seeing is an empty project with none of the application code in side

Workaround: If you want the application code and its directory hierarchy structures to show up in Eclipse Project Explorer, Select a wizard to use for importing project to Import as general project

  1. In the Import Projects window, in the Wizards field, enter a project name and click Finish.
  2. To work on this project, click Window > Open Perspective and select Git. The Git Repositories view lists your connected Git repositories.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s