Appendix for Maven users

Prerequisites for this Appendix is an installed Maven (Version 3.x) and access to the Maven Central Repository

Initial project setup

To create a Maven project without Eclipse, execute the following command on command line:

mvn archetype:generate \
  -DgroupId=org.apache.olingo \
  -DartifactId=DemoService \
  -DarchetypeArtifactId=maven-archetype-webapp \

This creates a project skeleton. Afterwards, use the goal eclipse:eclipse in order to make the project Eclipse-like. This allows to import the project into Eclipse using the default Eclipse-importer: File->Import->General->Existing projects into Workspace

Implementation of the Demo Service

To implement the Demo Service see section 4. Implementation in the tutorial.

Append Jetty to pom

To add support for run the Demo Service via Maven and the Jetty plugin add following part into the pom.xml:

  <defaultGoal>package jetty:run</defaultGoal>


Afterwards it is possible to call mvn (or mvn jetty:run) on the console to build the project and start the Jetty server on http://localhost:8080

Copyright © 2013-2023, The Apache Software Foundation
Apache Olingo, Olingo, Apache, the Apache feather, and the Apache Olingo project logo are trademarks of the Apache Software Foundation.