concept Pax Construct in category spring

This is an excerpt from Manning's book Spring Dynamic Modules in Action.
The Pax Construct (covered in appendix D) makes ingenious use of the externalized Bnd file: it defines a common configuration for the Felix Bundle Plugin in a parent POM, which all OSGi modules inherit from. This common configuration sets OSGi metadata like name, version, symbolic name, and so on, based on the POM information, and it includes an osgi.bnd file. Modules can then benefit from the common configuration for most of the metadata and use the osgi.bnd file for more specific metadata, like Export-Package or Import-Package. This solution provides a good balance between uniformity and specialization.
Pax Construct is a tool for creating, building, managing, and deploying OSGi-based applications. It builds on top of a Maven 2 plug-in and comes with Unix and Windows scripts that encapsulate the Maven 2 plug-in goals.
Compared to plain Maven 2 and the Apache Felix Bundle plug-in, Pax Construct streamlines the Maven 2 build process for OSGi via its archetypes and its comprehensive module-based project layout. Whereas the Apache Felix Bundle plug-in offers a simple, yet powerful, new kind of packaging (based on Bnd), Pax Construct offers tooling for the whole build process, from creating a project through to packaging it and running it. (Note that Pax Construct also uses the Apache Felix Bundle plug-in.)
Why didn’t we introduce Pax Construct earlier, or even use it throughout the book? Mainly because it’s another layer between OSGi and the developer, and we wanted to focus on OSGi and Spring DM. Nevertheless Pax Construct is great for managing your OSGi build or for getting started with OSGi (if you don’t want to be bothered with what happens under the covers).
In the following sections, we’ll provide a comprehensive introduction to Pax Construct, from installation to creating a module-based project, creating Spring-powered bundles with Pax Construct’s archetypes, and packaging and executing the application. We’ll use a simple example based on a data source bundle and a database client bundle, which will give us the opportunity to illustrate most of the features of Pax Construct. By the end of this section, you’ll know how and, more importantly, when to use Pax Construct.