Java-Based App on SCP: Part2-ESPM Application

Image for post
Image for post
Enterprise Sales Procurement Model (ESPM) Application Architecture

In this part, we are going to download and run the ESPM application.

Note: If you don’t want to build ESPM application locally then you can download WAR file here and skip to Deploy section.

  1. Open Git Perspective (Go to Windows
  2. Input URI and the fields will be automatically populated.
  3. Input your username and password
  4. Select Store in Secure Store if you don’t want to input the password again.
  5. Select all branches and click Next.
  6. Select Destination Directory and click Finish.

Now, you should see local repository on branch master while there are several on remote.

Image for post
Image for post
  1. In Eclipse, go to Preferences → Maven → User Settings.
  2. Check if the file settings.xml is created under .m2 folder. If not, create it with this content:
<settings xmlns=""

*Note: Remove <proxies> part if you’re note behind a proxy.

  1. Swtich to Java EE perspective.
  2. Go to File → Import… and select Maven → Existing Maven Projects.
  3. Choose the directory of your ESPM application and click Next.
  4. Click Finish.
Image for post
Image for post
Three Maven Projects to be imported
  1. Select all three Maven projects.
  2. Right-click and select Maven → Update Project…
Image for post
Image for post
  1. Right-click at cloud-espm-v2 project and select Run As → 2 Maven build…
  2. Input clean install in Goals.
  3. Click Run.
  4. Maven will start building and downloading all dependencies. This may take some time.
Image for post
Image for post

5. When the build is completed successfully, you should see this message:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] espm ............................................... SUCCESS [ 2.440 s]
[INFO] espm-cloud-jpa ..................................... SUCCESS [ 58.834 s]
[INFO] espm-cloud-web ..................................... SUCCESS [02:19 min]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:21 min
[INFO] Finished at: 2017-05-11T16:20:29+07:00
[INFO] Final Memory: 28M/120M
[INFO] ------------------------------------------------------------------------

Note: Maven requires Java Development Kit (JDK), you can install from here. Otherwise, the build will fail.

Note: If you didn’t have the WAR file then you can download it from here

  1. Log on SCP Cockpit and go to Applications → Java Applications.
  2. Click Deploy Application.
  3. Select WAR file in deploy subfolder under the project folder.
  4. Input the following:
    Application Name: espm
    Runtime Name: Java Web Tomcat 8
    JVM Version: JRE 8
  5. Click Deploy.
Image for post
Image for post

6. After deploy is completed, click Start.

7. Open the application URL and you should see the Customers web frontend.

Image for post
Image for post
  1. In espm application cockpit, go to Security → Roles.
  2. Add your ID to Retailer role.
  3. Open the Retailer web frontend by replacing /webshop/ with /retailer/ in the URL.
Image for post
Image for post
  1. Open customer front-end application, select a product and place the order.
  2. Open retailer front-end application, approve or reject the order.
  3. Use retailer front-end application to adjust the Minimum Stock Level > Items in Stock to change status of the product.
  4. The application uses HANA database.
Image for post
Image for post

Read More

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store