➡️ After that, go to terminal and clone your repository
$ git clone <repo-url>
$ 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 -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-tomee -DarchetypeVersion=RELEASE
Once the generation process has started, Maven will ask you for the usual module parameters:
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.