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.
cancel
Showing results for 
Search instead for 
Did you mean: 
matt_steiner
Active Contributor

For those still thinking that large enterprise and agile development is an oxymoron - take that: the NetWeaver Cloud team is delivering new features on a bi-weekly rhythm! And the latest (and greatest) release of SAP NetWeaver Cloud just went live and is now available for download [https://tools.netweaver.ondemand.com]

Personally I've been eagerly waiting for some of the features contained in that build and as some gems may get easily overlooked I decided to write a short post highlighting them. So, what am I so excited about: it's maven-ized samples!

So, where's the big deal you may wonder? Well, it's quite simple:

[Maven] can be used for building and managing any Java-based project. We hope that we have created something that will make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project.

[http://maven.apache.org/what-is-maven.html]

I think that summarizes it quite well and flows nicely with our vision of "ease of use". By using Maven for build management we can simplify the "getting started" aspect and the sharing of example code. No more hassle getting sample code to run in your environment. No more worries about legal issues that may come by distributing open-source libraries. Life as it should be!

Enough of the talk... let's just do it! All you really need to know to to get started is documented here: Running Sample Applications

In a nutshell it consists of a few simple steps:

  1. Download Maven and related plugins to make it work with Eclipse
  2. Make sure to set your proxy settings in case you are located behind a corporate firewall
  3. Import the sample apps as "Existing Maven Projects"
  4. Run a "maven build install" to build a standard war archive

It really is that simple! If you want to build your own sample apps using this approach I'd recommend taking the parent pom.xml and the hello world sample as a starting point. I really hope to see lots of demo code popping up now and matter of fact I'll post one within the next days to lead the way :wink:

PS: Special shout-out to our SDK team for providing very comprehensive examples and a well-structured pom to start with!!!

2 Comments