Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] ecf-dev Digest, Vol 121, Issue 14

Hi,

Karaf has a “hot” deploy folder, and anything you drop there will be installed by Karaf. You can both drop OSGi bundles and a feature file there. In my maven-based build I use two techniques:
- I have an Eclipse feature project and an update site (repository) project and build these with Tycho. The update site build will give you a target directory with a plugin folder, from which you can copy the plugins you need, into the deploy folder. The configuration of the Eclipse feature project determines which plugin will end up in the plugins folder, so you can control it pretty precisely.
- For OSGi bundles that are not part of the Eclipse world and built with Tycho, I use a features.xml file. This is Karaf’s way of describing features, and is essentially the same as Eclipse’s feature project, but in a slightly different format. This file can reference bundles in a maven repository, at a URL or a local file. Hence, you can prepare a features.xml file that provides the remaining bundles. By using features.xml you can also set start level etc.

See https://karaf.apache.org/manual/latest/users-guide/provisioning.html for more on this.

Hallvard


>Message: 1
>Date: Fri, 28 Aug 2015 19:03:35 -0400 (EDT)
>From: forums-noreply@xxxxxxxxxxx
>To: ecf-dev@xxxxxxxxxxx
>Subject: [ecf-dev] New topic in forum Eclipse Communications Framework
>	(ECF),	called Install ECF into Karaf Offline, by David Sousa
>Message-ID: <20150828230335.AE80E29B7E0@xxxxxxxxxxxxxxxxxxx>
>Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>What would be the best way to install ECF into Karaf when there is no access to the Internet?  I have tried to use the features-maven-plugin to download the necessary jars while connected to the Internet, and make a custom ServiceMix distribution.  However, this does not work with the Eclipse P2 update sites in the features.xml file, i.e. nothing is copied to the target repository.
>
>I have also tried using the kar:create command to generate a KAR file for the ecf-remoteservices-sdk feature after having installed the feature while online.  However, the KAR file simply contains an entry for the P2 site in the manifest.
>
>Any recommendations would be appreciated.  Thanks.
>
>To participate in the discussion, go here: https://www.eclipse.org/forums/index.php?t=rview&frm_id=99
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <https://dev.eclipse.org/mailman/private/ecf-dev/attachments/20150828/6ea69206/attachment.html>
>
>------------------------------
>
>_______________________________________________
>ecf-dev mailing list
>ecf-dev@xxxxxxxxxxx
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>https://dev.eclipse.org/mailman/listinfo/ecf-dev
>
>End of ecf-dev Digest, Vol 121, Issue 14
>****************************************

Back to the top