Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBCA19EF1 for ; Fri, 16 Dec 2011 11:50:35 +0000 (UTC) Received: (qmail 99622 invoked by uid 500); 16 Dec 2011 11:50:35 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 99596 invoked by uid 500); 16 Dec 2011 11:50:35 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 99588 invoked by uid 99); 16 Dec 2011 11:50:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 11:50:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.70.183.196] (HELO relay4-d.mail.gandi.net) (217.70.183.196) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 11:50:25 +0000 X-Originating-IP: 217.70.178.144 Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id C4449172076 for ; Fri, 16 Dec 2011 12:50:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter16-d.gandi.net (mfilter16-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id s+SdO8cpB+nU for ; Fri, 16 Dec 2011 12:50:03 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.15] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 472B6172097 for ; Fri, 16 Dec 2011 12:50:03 +0100 (CET) Message-ID: <4EEB306A.20509@nanthrax.net> Date: Fri, 16 Dec 2011 12:50:02 +0100 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: user@karaf.apache.org Subject: Re: bundle dependency: What is the way to deploy the bundles References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Guofeng, the best way is to create a feature in which you can define the start ord= er: - feature A with your bundle A - feature B define a dependency to feature A This features XML could be package in a kar. Regards JB On 12/16/2011 11:53 AM, Guofeng Zhang wrote: > Hi, > > I have a kar, and a jar bundle which will import the packages from the = kar. > > When I copy both the kar and the jar to the deploy directory of fresh > Karaf installation (no data directory created), then run Karaf, it seem= s > that the jar is first deployed and the import cannot be met. > > If I first run Kara, then copy the kar to the deploy, and then copy the > jar, no resolver issue complained and the application works well. The > late time re-launch Karaf, the application still work without any > problem (refer to resolver problem). > > In the case, what is the best way to deploy my application on Karaf? > > Thanks > > Guofeng > --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com