Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Active Participant

If you have just create your account  and wondering what is the fastest way to see something running on the cloud, then you are on the right place!

So, we look for faster possible (hopefully automated) way to execute following steps:

  1. Get tools and SDK
  2. Create an application
  3. Compile and package it
  4. Deploy it
  5. Start it
  6. Access it

Ok, now we have a plan let see how we can automate as many as possible of those tasks.

Let assume that you already have Java installed.

As we want to automate we will need some tools for task automation. I prefer maven and hope you too. The tool is really powerful and installation is very simple.

In short - download it, unpack it, export in environment M2_HOME variable to point to folder where you unpack maven and add M2_HOME/bin to your path variable:

export M2_HOME=<path to folder with unpacked maven>/maven

export PATH=${M2_HOME}/bin:${PATH}

We can use the maven templating toolkit and specifically the archetype for web applications “maven-archetype-webapp” to fully generate the simple "hello world” web application.

For the automation of other tasks we will look at what our cloud experts say in SCN.

In article "Working with the "Neo" Maven Plugin" vedran.lerenc explains how we can use maven for SDK installation, application packaging and deployment on the cloud.

And in this example stephan.merker2 gives a more complex scenario, by covering other application life cycle operations such as start/stop and undeploy.

Now we have the knowledge and can proceed with the automation of all steps from our plan.

The expectations are that the whole scenario from beginning to end will take us less that 5 minutes (including a little more than 1 minute waiting for application to start on the cloud before accessing it :wink: )

Step1 - Application generation

Create an empty folder for this experiment and execute following command:

mvn archetype:generate -DgroupId=com.acme.hello -DartifactId=com.acme.hello.webapp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

Step 2 - Build, Package, Stop (in case it was already started), Deploy, Start

All those steps will become a part of the pom.xml file that was generated for us in Step 1.

Open the pom.xml file and add inside following content:

<project xmlns="" xmlns:xsi=""







     <name>com.acme.hello.webapp Maven Webapp</name>










































                                   <!-- proxy related information - if not behind proxy remove next 4 lines -->
















          <!-- you need to fill your account information here -->





          <!-- proxy related information here - if not behind proxy remove next 2 lines -->





Fill the sections that refer account information and proxy settings inside pom.xml. :!: Keep in mind that this is not secure at all, but it is the faster approach :wink: .

ℹ If you want to make this secure and use it as part of continuous integration process (jenkins) use environment variables as they are used in this example.

When you finish editing the file, save it and execute the following:

cd com.acme.hello.webapp/

mvn clean install

When you get this result:

This means the application is now started on the cloud.

Let go and see it.

Step 3 - Access it

Open the cockpit in your browser ( and look for application “hellomaven” there:

Then open the link inside Application URLs section and you will get this:

And we are done!

Let's check the times

1. Generating the application took 16 sec

2. Editing the pom.xml file took less than 1 minute

3. Building, packaging, deploying and installing took 1 minute and 17 seconds

4. Accessing the application took less than 1 minute

So from nothing to an application on the cloud in less than 4 minutes (less than 3 minutes and 33 seconds actually)

I dare you to beat this result :wink: