🕓 5 minutes
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.
-
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
. -
Unzip the downloaded file in your students directory - a new directory
teched2019-cloud-cf-product-list-teched2019
will be created.
In case you like to develop a Java or Spring application.
-
Open the Windows Start menu and enter
Spring Tool
in the input field. UnderPrograms
you will seeSpring Tool Suit
. Click on this entry to open Spring Tool Suite. -
Now import the two sample projects as Maven project into your Eclipse workspace: In the Eclipse menu, chose
File
>Import...
. -
In the
Import
wizard, selectMaven
>Existing Maven Projects
and clickNext
.
-
In the next step of the
Import Maven Projects
popup, clickBrowse
, navigate into the unziped root folder ofteched2019-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 clickFinish
. -
Both projects are now imported in Eclipse. You should see them in the Project Explorer like in the screenshot below.
In case you like to develop a Java or Spring application.
-
Now build the project in Eclipse: Select the project in the Project Explorer, open its context menu and click on
Run As
>Maven build...
.
-
In the
Edit Configuration
popup, enterclean install
into theGoals
field and clickRun
.
-
The Maven build should fail with some JUnit Test errors which will be fixed along this Exercise:
-
© 2019 SAP SE