After reading Matthias Vachs excellent blog post Using an open source based development infrastructure with SAP HANA Cloud Platform I decided to play around with the tools mentioned in his blog post. The result of this is a SAP UI5 Application available on GitHub, that you can use as starting point for your ventures into Continuos Integration.

In part one of this blog series we will focus on getting the project up and running on our local Hana Cloud Server, subsequent parts will deal with setting up an environment for Continues Delivery.

The Project

To get started with contninuous delivery on the SAP HANA Cloud Platform we will start by cloning and building a simple SAP UI5 project, SAPUI5 for Maven, or UI5MVN. The project is meant to be used as a starting point for Hana Netweaver Cloud development, and the focus has been to streamline the development process with the help of best of breed open source tools.

  • Source Versioning is with GitHUB

  • Maven is used as dependency and build tool
  • The project is editor agnostic, but it has been tested using Eclipse

Prerequisites

Installation

  1. Make sure you have all prerequisits installed and setup.
  2. Clone the project from the git repository to a directory of your choice.
  3. git clone https://github.com/matt1as/SapUI5-for-Maven

  4. Change into the directory SAPUI5-for-maven
  5. Rename or copy the following files:
    • pom.xml.local to pom.xml
    • nwcloud.properties to nwcloud.properties.local
    • src/main/destinations/Gateway.local to src/main/destinations/Gateway
  6. Edit the property <nw.cloud.sdk.path> in pom.xml to point to your local SAP Hana Cloud Platform SDK
  7. Edit the following properties in nwcloud.properties
    • sdk.dir – to point to your local SAP Hana Cloud Platform SDK
    • account – your Hana Cloud Platform account
    • user – your Hana Cloud Platform user
    • password – Your Hana Cloud Platform password
  8. Edit your username and password in src/main/destinations/Gateway
  9. Build and install using maven

    mvn clean install

  10. Deploy to your local Hana Cloud Server

    mvn nwcloud:deploy-local

  11. Start your local Hana Cloud Server

    mvn nwcloud:start-local

  12. Browse to the start page

    http://localhost:8080/SapUI5-for-Maven/

After completing these steps you should have a simple SAP UI5 application up and running, the application connects to the SAP Gateway Demo system and retrieves a list of Products. By clicking on this product you get some more details about the product.

In part two we will focus on setting up the development environment, using Eclipse and the Eclipse file sync plugin.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Vedran Lerenc

    You may be interested to hear that SAP HANA Cloud Platform has fully embraced Maven and is shipping its SDK and API to Maven Central. As of lately now also a Maven plugin is available and shipped to Maven Central.

    There are two new blog postings about the SAP HANA Cloud Platformartifacts shipped to Maven Central. You may like to check out Building Java Web Applications with Maven and Working with the “Neo” Maven Plugin.

    The first explains how to compile against the SAP HANA Cloud Platform API for Java and the second introduces the official Maven plugin for the SAP HANA Cloud Platform.

    API, SDK, and the new and official Maven plugin are continuously released to Maven Central. The help for the plugin can be found here:SAP HANA Cloud Platform Java Web Maven Plugin.

    (0) 

Leave a Reply