OBR and Trialox

Trialox CMS and OBR

It should be possible to easily install the Trialox CMS on an OSGi container over an OSGi Bundle Repository (OBR).

Goal

To install the Trialox CMS only the following steps should be done:
1) start osgi container
2) set a trialox obr-repository URL
3) obr start "trialox CMS"

Problems

- When starting a bundle with "obr start [bundle-name]"-command, then the bundle and all its dependencies are installed and started [1]. With OBR it is not possible to specify a starting order, therefore no initial provisioning could be done (like setting up a CPA).
- (OBR is used to install bundles in an already running OSGi container, therefore another CPA could be set up.)

Solution

Create new bundle "trialox CMS", which depends on all bundles needed.

Start the "trialox security"-bundle seperate before the "trialox CMS"-bundle:
steps:

1) start osgi container
2) set a trialox obr-repository URL
3) obr start "trialox security"
4) obr start "trialox CMS"

[1] http://oscar-osgi.sourceforge.net/repo/bundlerepository/\\

How to add a maven bundle project to a OBR repository?

Add the following to the pom.xml of the project:

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-obr-plugin</artifactId>
  <version>1.2.0</version>
  <executions>
    <execution>
      <goals>
        <goal>install</goal>
      </goals>
    </execution>
  </executions>
</plugin>

See http://felix.apache.org/site/apache-felix-maven-obr-plugin.html for more details

Labels

 
(None)