Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 19444 invoked from network); 14 May 2008 04:05:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 04:05:40 -0000 Received: (qmail 26268 invoked by uid 500); 14 May 2008 04:05:41 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 26223 invoked by uid 500); 14 May 2008 04:05:41 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 26212 invoked by uid 99); 14 May 2008 04:05:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 21:05:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mcculls@gmail.com designates 209.85.142.186 as permitted sender) Received: from [209.85.142.186] (HELO ti-out-0910.google.com) (209.85.142.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 04:04:53 +0000 Received: by ti-out-0910.google.com with SMTP id a21so1205511tia.2 for ; Tue, 13 May 2008 21:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=Tnqe/JOQ+lcCgl9Jr3O72upNeRWE+4tRNMJkP//UzFQ=; b=vgYQ8bxmketiAISKrbATLmJHVPUVWGGer/hZso0eXs6NujpNrDLgF+e/eKo6rCMMsEgi6liISOaGHl1RcpPy2rejgpIaJa1U3bahM3hiTz2i4mqDoDnLExK9pE2t02abwbCOubQEcyRJg+WDaybZZm7IWvOm2la7gzrkzLZewtM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=wfYGWnJYZzPTfw4HM9TdKOs9EhtROYF1jNplo0j2xWCmIIHYOxJJBpUyXKsLt1a2eljnE5ot/O7PHXgcJhM11189SxIMMsV8PdRS5Vyne18d628iTNPxlYC2ITVF4Dkmgr3u8NvWORF7rN5r8M/9go+OiFuaOtsYooJ8PgR1FXQ= Received: by 10.150.72.11 with SMTP id u11mr602328yba.110.1210737904031; Tue, 13 May 2008 21:05:04 -0700 (PDT) Received: by 10.150.195.17 with HTTP; Tue, 13 May 2008 21:05:03 -0700 (PDT) Message-ID: <81f0d9c0805132105l2b257b40x57acd89f1393d961@mail.gmail.com> Date: Wed, 14 May 2008 12:05:03 +0800 From: "Stuart McCulloch" Sender: mcculls@gmail.com To: dev@felix.apache.org Subject: Re: Include resource in maven-bundle-plugin In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6836_13697450.1210737904004" References: X-Google-Sender-Auth: 5193d7e6100e93cd X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6836_13697450.1210737904004 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/5/14 Saminda Abeyruwan : > Hi Devs, > > In my pom.xml I have a dependency to a zip file > > > foo > bar > SNAPSHOT > zip > > > This zip file contains resource inside META-INF/rr directory, > > Following line is present in maven-bundle-pluing > > > @bar-SNAPSHOT.zip!/META-INF/rr/* > > > But the build fails saying > > Can not find JAR file bar-SNAPSHOT.zip > [ERROR] Error(s) found in bundle configuration > yes, I tried this just now and it looks like Maven doesn't add the 'zip' artifact to the compilation classpath, which is why Bnd can't find it. according to this issue, zipfile support is in Maven 2.1 but not 2.0.x: http://jira.codehaus.org/browse/MNG-1683 however, you could try inlining this artifact using Embed-Dependency: bar;inline=true unfortunately at the moment this will inline the complete zip - it won't allow you to select a subset of the zip, although this feature could be added - feel free to raise an feature request for this at: http://issues.apache.org/jira/browse/FELIX/component/12311143 you can find more details about Embed-Dependency here: http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html HTH Is there a way provide a zip file to this location. > > > Thank you! > > Saminda > > -- > Saminda Abeyruwan > > Senior Software Engineer > WSO2 Inc. - www.wso2.org > -- Cheers, Stuart ------=_Part_6836_13697450.1210737904004--