Make sure that the following tools are available in your computer:
- Eclipse for JAVA Enterprise developers to build a JAVA application on your compute. Follow the installation guide for possible implementation of additional libraries.
- Oracle JAVA EE Development Kit (JDK) to compile the Java application. JDK might already be a part of the Eclipse bundle. If Eclipse fails to build the application because JDK is missing, download and install it on your computer.
- Apache Maven to build the Java application. Maven should be a part of the Eclipse bundle. If Eclipse fails to build the application because Maven is missing, download and install it on your computer.
- For more comprehensive information about tools or versioning, see the Tools page.
- Run Eclipse. You will be prompted for a Workspace directory; this will be a common location for all Java projects.
- Create a new directory on your computer for the application inside the Workspace directory. This folder will be further referred as APP_HOME.
- Download or clone this repository into the APP_HOME directory.
The source code contains a project file (.pom) which will be recognized by Eclipse. Open the project file and build the application.
- The dependent libraries should be automatically downloaded from a Maven repository during the build. You can reconfigure Eclipse to use a local Maven or Nexus directory.
- You might also need to configure Eclipse network settings if you are using a HTTP Proxy.
- The deployable artifact of the application should be created in APP_HOME/target with a .war suffix.
Deploy the application (.war) into your organization's SAP BTP space.
- You can either use the SCP Cockpit and the Deploy button in your space, or you can use the Cloud Foundry Command Line Interface - CLI. A useful tutorial on the CLI can be found here.
- The parameters of the application (e.g. memory assignment) are set during the deployment.
- The repository contains an example manifest.yml in APP_HOME directory. It is possible to use the manifest.yml directly after providing user-specific values. Ensure you save the manifest with unix-style line endings. E.g. replace\name = <app_name> with a value, that is likely to be unique, e.g. name = my_company_com_pl_whitelist
Continue with the setup of the consumption of the end points described on the main page.