Since the beginning the SAP HANA Cloud Platform SDK contained Java web application samples that showed how to build them with Maven. That was somewhat cumbersome as you had to download the SDK manually and then refer to it directly via so-called system-scoped dependencies. This was significantly improved lately (see [1]).
From now on you can find the following artifacts for all supported Java runtimes of the SAP HANA Cloud Platform in Maven Central (the central Maven artifact repository; see [2]😞
In this first part of a mini blog series on our Maven artifacts we will start with the easiest task: How to compile your Java web application against the API of the SAP HANA Cloud Platform? Well, by adding a single Maven dependency, which is the following:
<dependency>
<groupId>com.sap.cloud</groupId>
<artifactId>neo-java-web-api</artifactId>
<version>1.53.18.2</version>
<scope>provided</scope>
</dependency>
Note: You may also pick neo-javaee6-wp-api for the Java EE6 Web Profile runtime.
Let me talk you through the above:
The above dependency has transitive dependencies to other dependencies that Maven will resolve automatically for you. In fact, the above dependency by itself is only about the SAP-developed API (e.g. check out our useful extensions for multi-tenancy or connecting to your firewall-protected network via the SAP Cloud Connector). The platform and the artifact makes use of Open Source components which are the above mentioned transitive dependencies automatically resolved by Maven.
The documentation (JavaDoc) of the API can be found online (see [3]).
In the second part of this mini blog series we will introduce the Maven Plugin for the SAP HANA Cloud Platform and tell you what you can do with it.
[1] Maven or Finding joy in the little things
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
14 | |
12 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |