This project has retired. For details please refer to its Attic page.
Apache Stanbol - Build your launcher

Build your launcher

Principle

A Stanbol launcher is a big set of bundles that work together and provide features packages (EntityHub, ContentHub, Enhancer,...). Each features package need a list of bundles to work smoothly.

Thanks for Stanbol design, you can have in your server only some of the proposed features package (for example only the EntityHub and Enhancer, without others features). Then you only need required bundles for the features package you want.
But identify and manually add all feature's required bundles can be pain and long. Hopefully, the bundlelist mechanism allow the creation of specific set of bundles that will be added together to the launcher and started in the right way.

Stanbol launcher's use this bundlelist mechanism. Let's dive into the details.

Use existing bundlelists to build your launcher

Dependencies to bundlelist

<dependency>
<groupId>org.apache.stanbol</groupId>
<artifactId>org.apache.stanbol.entityhub.bundlelist</artifactId>
<version>0.11.0-SNAPSHOT</version>
<type>partialbundlelist</type>
<scope>provided</scope>
</dependency>

Build your launcher

Create your own bundlelist

Build your bundlelist dependency

    mybundlelistFolder
      |
      |- pom.xml
      |- src
          |- main
              |- bundles
                   |- list.xml

<bundles>
<startlevel level="L0">
<bundle>
...Maven groupId,artifactID and version properties...
</bundle>
<bundle>
...another Maven's dependency information...
</bundle>
</startlevel>
<startlevel level="L1">
... anothers bundles nodes...
</startlevel>
</bundles>

Add your bundlelist to your launcher

<groupId>com.example</groupId>
<artifactId>my.bundlelist</artifactId>
<version>0.10.0-SNAPSHOT</version>
<packaging>partialbundlelist</packaging>

<dependency>
<groupId>com.example</groupId>
<artifactId>my.bundlelist</artifactId>
<version>0.10.0-SNAPSHOT</version>
<packaging>partialbundlelist</packaging>
</dependency>