Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Latest commit

 

History

History
69 lines (53 loc) · 3.12 KB

File metadata and controls

69 lines (53 loc) · 3.12 KB

Cloning sample application git from Github

Estimated time

🕓 5 minutes

Objective

In this exercise you'll learn how you can clone the Product List sample application, import it in your local Eclipse environment as Maven Project and build it.

Exercise description

1. Download the sample code as zip

  1. Go to the root of the project in github: https://github.com/SAP-samples/cloud-cf-product-list. Make sure that you are in the right branch: teched2019.

  2. Click on Clone or download button and select Download ZIP

    Download ZIP

  3. Unzip the downloaded file in your students directory - a new directory teched2019-cloud-cf-product-list-teched2019 will be created.

2. Import the sample project into Spring Tool Suite (not for Node.JS)

In case you like to develop a Java or Spring application.

  1. Open the Windows Start menu and enter Spring Tool in the input field. Under Programs you will see Spring Tool Suit. Click on this entry to open Spring Tool Suite.

  2. Now import the two sample projects as Maven project into your Eclipse workspace: In the Eclipse menu, chose File> Import....

  3. In the Import wizard, select Maven > Existing Maven Projects and click Next.

    Import Maven Project

  4. In the next step of the Import Maven Projects popup, click Browse, navigate into the unziped root folder of teched2019-cloud-cf-product-list-teched2019 project in your student directory folder (D:\Files\Session\SEC364). In the wizard select both projects (java and spring) and finally click Finish.

  5. Both projects are now imported in Eclipse. You should see them in the Project Explorer like in the screenshot below.


    Import Maven Project

3. Build the project in Eclipse using Maven (not for Node.JS)

In case you like to develop a Java or Spring application.

  1. Now build the project in Eclipse: Select the project in the Project Explorer, open its context menu and click on Run As > Maven build....

    Import Maven Project

  2. In the Edit Configurationpopup, enter clean install into the Goalsfield and click Run.

    Import Maven Project

  3. The Maven build should fail with some JUnit Test errors which will be fixed along this Exercise:

    Import Maven Project


© 2019 SAP SE

Previous Exercise Next Exercise