Andrej,
We repackage requirements that aren't packaged as an OSGi bundle by
their own as a ServiceMix bundle. We also have an OSGi bundle availble
to provide the smack requirement. You can find it at
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.smack.
The easiest way to install additional Camel components into ServiceMix
Kernel however, is by using the camel features.xml that we built for
ServiceMix 4. First add the Apache SNAPSHOT repository to the
etc/org.ops4j.pax.url.mvn.cfg file, because this thing isn't available
from a public repo yet. Something like
org.ops4j.pax.url.mvn.repositories=file:${user.home}/.m2/[EMAIL PROTECTED],http://repo1.maven.org/maven2,http://people.apache.org/repo/[EMAIL PROTECTED]
With the snapshot repository in place, you can add an additional
features.xml URL with the command:
features addUrl
mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.features/4.0-m2-SNAPSHOT/xml/features
This will allow you to install any Camel component with a simple command
like "features install camel-xmpp". When you run the command, it will
download the necessary bundles to satisfy all the requirements for the
component automatically.
The "features list" gives the full list of components that can be
installed this way.
Regards,
Gert
andrejk schreef:
Camel-xmpp complains about unresolved packages (smackx). I've tried
installing them from the servicemix repository, but i think these are just
plain old jars, not osgi bundles. I can install them in servicemix, but it
doesn't solve the problem.
Here's what i tried:
servicemix> osgi install -s
http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smack/3.0.4/smack-3.0.4.jar
Bundle ID: 75
servicemix> osgi install -s
http://svn.apache.org/repos/asf/servicemix/m2-repo/org/igniterealtime/smack/smackx/3.0.4/smackx-3.0.4.jar
Bundle ID: 76
servicemix> osgi install -s mvn:org.apache.camel/camel-xmpp/1.4.0
ERROR BundleException: Unresolved package in bundle 77: package;
(package=org.jivesoftware.smackx.muc)
How do i solve this?
Thanks,
Andrej