Can't instal open source bundles on Karaf 2.2.2
simplex-software May 27, 2012 12:19 PMGreetings,
I need to install an open-source product, named Kettle (an ETL) on Karaf such that to be used in Camel routes. Basically, there are 4-5 jar files that are needed. But since there is not OSGi distribution of it, I need to convert it.
I tried to install the archives in the maven repository and, from there, to install with wrap:mvn. The JARs have been installed as bundles an appeared in active status but their MANIFEST.MF didn't have any import/export statement.
So I used bnd tool to wrap them. This time the MANIFEST.MF had lots of import/export and I thought it was ok so I installed the result in the maven repository and, from there tried to install them in Karaf.
Installing the first bundle, named kettle-core, worked but trying to install the second one, named kettle-engine, raised the following exception:
karaf@root> osgi:install -s mvn:pentaho.kettle/kettle-core/4.2.0-stable
Bundle ID: 293
karaf@root> osgi:install -s mvn:pentaho.kettle/kettle-engine/4.2.0-stable
Error executing command: Unable to resolve module kettle-engine because it exports package 'org.pentaho.di.repository' and is also exposed to it from kettle-core
via the following dependency chain:
import: (package=org.pentaho.di.core.row)
export: package=org.pentaho.di.core.xml; uses:=org.pentaho.di.core
export: package=org.pentaho.di.core
The order of install is obviously important. So how can I determine the right order without having to permute all the combinations ?
Many thanks in advance,
Nicolas