Can you enable "trace" level in your log to see which path is
calculated to find the repository ?


On Mon, Oct 11, 2010 at 8:21 AM, Adrian Trenaman <[email protected]> wrote:
> Looks like Karaf cannot resolve the 'imported' repositories from the Maven
> repository. Can you check and see that Karaf is picking up your correct
> local maven repo, and that the repo contains the repositories?
>
>
> From: Mark Derricutt [mailto:[email protected]]
> Sent: Sunday, October 10, 2010 09:13 PM
> To: [email protected] <[email protected]>
> Subject: Re: <repository> use in feature files
>
> My feature file looks like:
>
> <features name="smx3.featureset-3.1.0-SNAPSHOT">
>
>
> <repository>mvn:com.smxemail/com.smxemail.karaf/3.0.7/xml/features</repository>
>     <repository>mvn:smx3/smx3.karaf/3.0.6/xml/features</repository>
>     <repository>mvn:smx3/smx3.portal.karaf/3.0.12/xml/features</repository>
>
> <repository>mvn:smx3.sites/smx3.sites.smxemail.karaf/3.0.6-SNAPSHOT/xml/features</repository>
>
>     <feature name="smx3.featureset" version="3.1.0-SNAPSHOT">
>         <feature>com.smxemail.karaf</feature>
>         <feature>smx3-core</feature>
>         <feature>smx3-portal</feature>
>         <feature>smx3.sites.smxemail</feature>
>     </feature>
> </features>
>
> The error I see is:
>
> 14:11:58,362 | INFO  | Thread-6         | FeaturesServiceImpl              |
> res.internal.FeaturesServiceImpl  250 | Error when installing feature
> smx3.featureset: java.lang.Exception: No feature named 'com.smxemail.karaf'
> with version '3.0.7' available
>
> The feature file is in the maven repository that karaf can see, as it
> previously was listed in the etc/org.apache.felix.karaf.features.cfg  file.
>
> Mark
>
>
>
> --
> Pull me down under...
>
>
>
> On Mon, Oct 11, 2010 at 12:57 PM, Freeman Fang <[email protected]>
> wrote:
>>
>> Hi,
>> Karaf support repository tag in features.xml from first released version
>> 1.0.0(actually when it's Apache Servicemix Kernel it already
>> support repository tag).
>> So Karaf 1.4 support <repository>.
>> How do you use repository in features.xml? What's the error you get?
>> You should put <repository> tag under <features> tag, so that all features
>> defined in repository file is available for this features.xml
>> Freeman
>> On 2010-10-11, at 上午7:24, Mark Derricutt wrote:
>>
>> Hey all,
>>
>> I was wondering at what version of Karaf with the <repository> element
>> come into use in Karaf?
>>
>> We're still running 1.4 and I'm trying write up a composite "feature set"
>> feature file for our app, but it looks like <repository> isn't supported (
>> no mention of a "since" version on the website either ).
>>
>> Mark
>>
>>
>> --
>> Pull me down under...
>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> blog: http://freemanfang.blogspot.com
>> twitter: http://twitter.com/freemanfang
>> Open Source SOA: http://fusesource.com
>> Apache Servicemix:http://servicemix.apache.org
>> Apache Cxf: http://cxf.apache.org
>> Apache Karaf: http://karaf.apache.org
>> Apache Felix: http://felix.apache.org
>
>

Reply via email to