O'Reilly logo

OSGi and Apache Felix 3.0 by Walid Joseph Gédéon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating the project POM

The next step is to create the pom.xml file, which tells Maven and the Felix plugins how to build this project.

The Project Object Model (POM) is located in the project base directory (in this case, under com.packtpub.felix.bookshelf-inventory-api).

Create a file named pom.xml. You will edit its contents as we go through their meaning in the coming sections.

<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

The first part is common to all POMs; it's the XML schema information and the POM model version.

The Bundle identity ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required