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
Java 7 or later - get it from http://www.oracle.com/technetwork/java/javase/downloads/index.html
GIT - get it from Set Up Git - GitHub Help
Maven - get it from http://maven.apache.org/
SAP Hana Cloud Platform SDK - get it from https://tools.hana.ondemand.com/#cloud
Hana Cloud Platform trial account - get it from https://account.hanatrial.ondemand.com/
Hana Cloud Maven Plugin - get it at https://github.com/SAP/cloud-maven-plugin
Installation
- Make sure you have all prerequisits installed and setup.
- Clone the project from the git repository to a directory of your choice.
- Change into the directory SAPUI5-for-maven
- Rename or copy the following files:
pom.xml.local
topom.xml
nwcloud.properties
tonwcloud.properties.local
src/main/destinations/Gateway.local
tosrc/main/destinations/Gateway
- Edit the property
<nw.cloud.sdk.path>
inpom.xml
to point to your local SAP Hana Cloud Platform SDK - Edit the following properties in
nwcloud.properties
sdk.dir
- to point to your local SAP Hana Cloud Platform SDKaccount
- your Hana Cloud Platform accountuser
- your Hana Cloud Platform userpassword
- Your Hana Cloud Platform password
- Edit your username and password in
src/main/destinations/Gateway
- Build and install using maven
mvncleaninstall
- Deploy to your local Hana Cloud Server
mvn nwcloud:deploy-local
- Start your local Hana Cloud Server
mvn nwcloud:start-local
- Browse to the start page
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.