CL4: Create Sample Application

Task: Create Clound Foundry SAP Sample Application

Launch your IDE of choice and follow the initial step outlined in - AWS Cloud9
or - 3rd party IDE

➡️ After that, go to terminal and clone your repository

$ git clone <repo-url>

Enter directoy

$ cd <repo-name>

Create a new sample application for Cloud Foundry

Note: You can also use an existing SAP CF java project, the outlined steps will be very similar.

$ mvn archetype:generate -DarchetypeArtifactId=scp-cf-tomee -DarchetypeVersion=RELEASE

Once the generation process has started, Maven will ask you for the usual module parameters:

  • groupId - an identifier representing your group, company or organization (e.g.
  • artifactId - an identifier for your application, which must be unique across a SAP Cloud Platform region(!) (e.g. <userID>-cicd-cf-sample)
  • version - the version of your application (e.g. 1.0-SNAPSHOT = default)
  • package - the name of the top-level package your source code will reside in (default = groupId, e.g.

After project generation, make sure to move the created content one node up in the folder hierarchy.
You also use the following snippets:

$ cp -Ra <userID>-cicd-cf-sample/. .
$ rm -Rf <userID>-cicd-cf-sample/

The result should look like this:


Note: ‘artifactId’ can also be adjusted later via the manifest.yml!

Try to make yourself familiar with the code. For more info please see this tutorial.