Time for action - adding the required dependencies

Right now, let's look at the required dependencies. As we go through them, we will add them into the dependencies section of the com.packpub.felix.bookshelf-service-tui project descriptor: pom.xml.

For this functionality, we will need to use the Descriptor annotation, which is provided by the the org.apache.felix.gogo.runtime bundle:

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.runtime</artifactId>
<version>0.6.0</version>
</dependency>

We will also need to register the implemented command as a service, by implementing a BundleActivator, which is provided by the org.osgi.core bundle:

<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
</dependency>

The book search functionality is provided by the com.packpub.felix.bookshelf-service bundle:

<dependency>
<groupId>com.packpub.felix</groupId>
<artifactId>com.packpub.felix.bookshelf-service</artifactId>
<version>1.7.0</version>
<scope>compile</scope>
</dependency>

The two flavors of the search command will return a set of Books, which are defined in the com.packpub.felix.bookshelf-inventory-api bundle:

<dependency>
<groupId>com.packpub.felix</groupId>
<artifactId>
com.packpub.felix.bookshelf-inventory-api</artifactId>
<version>1.5.0</version>
</dependency>
</dependencies>

We're now ready to start the search command implementation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.17.128