Hi,

I think I had the same issue a time ago and I've created
https://issues.apache.org/jira/browse/KARAF-3053 ...

Hope this helps.

Regards,
Andreas

2015-03-18 11:08 GMT+01:00 Aki Yoshida <[email protected]>:

> Hi,
> I think there is something strange and need to place my question again.
>
> I  created a small test and verified that this problem occurs under a
> specific case.
>
> When I have a feature file
> <features ...>
>
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/2.7.15/xml/features</repository>
>
> <repository>mvn:org.apache.camel.karaf/apache-camel/2.14.2/xml/features</repository>
>
>   <feature name="my-cxf" version="0.0.1" resolver="(obr)">
>     <feature version="[2.7,3)">cxf</feature>
>   </feature>
>
>   <feature name="my-camel" version="${project.version}" resolver="(obr)">
>     <feature version="2.14.2">camel-cxf</feature>
>   </feature>
>
>   <feature name="my-cxf-and-camel" version="${project.version}"
> resolver="(obr)">
>     <feature version="[2.7,3)">cxf</feature>
>     <feature version="2.14.2">camel-cxf</feature>
>   </feature>
> </features>
>
> when I run
> feature:install my-cxf
> feature:install my-camel
>
> I get a system with cxf-2.7.15 and camel-2.14.2. Everything is fine.
>
> but when I run
> feature:install my-cxf-and-camel
>
> I get a system with mixed cxf-2.7.15 and cxf-3.0.4 and camel-2.14.2
>
> I am not sure if I am missing something there?
>
> regards, aki
>
> 2015-03-18 10:37 GMT+01:00 Aki Yoshida <[email protected]>:
> > maybe I was doing something wrong yesterday.
> > it is working fine with setting the range at the feature.
> > sorry. please ignore my message.
> > regards, aki
> >
> > 2015-03-18 1:09 GMT+01:00 Aki Yoshida <[email protected]>:
> >> I wanted to write a single karaf feature file to do the equivalent of
> >> the following command steps:
> >>
> >> feature:repo-add cxf 2.7.15
> >> feature:install cxf
> >> feature:repo-add camel 2.14.2
> >> feature:install camel-cxf
> >> install mvn:temp.com/foo/0.0.1
> >>
> >> This will setup my karaf 3.0.3 system with cxf 2.7.15 and camel 2.14.2
> >> to run my foo bundle.
> >>
> >> To this using a single feature file, I thought I could write the
> >> following feature file
> >> .
> >> <features ...>
> >>
>  
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/2.7.15/xml/features</repository>
> >>
>  
> <repository>mvn:org.apache.camel.karaf/apache-camel/2.14.2/xml/features</repository>
> >>
> >>   <feature name="my-foo" version="0.0.1" resolver="(obr)">
> >>     <feature version="2.7.15">cxf</feature>
> >>     <feature version="2.14.2">camel-cxf</feature>
> >>     <bundle>mvn:temp.com/foo/0.0.1</bundle>
> >>   </feature>
> >> </features>
> >>
> >> and just run
> >> feature:install my-foo
> >>
> >> However, this didn't work as adding camel-feature repo 2.14.2 in my
> >> feature file is bringing cxf-feature repo 3.0.4. Consequently,
> >> installing my-foo is pulling cxf 3.0.4 instead of cxf 2.7.15.
> >>
> >> I tried using <feature version="]2.7,3)">cxf</feature> in my my-foo
> >> feature, but that didn't help either
> >>
> >> So I am wondering if there is a simple way to exclude a repo version
> >> referenced in one feature?
> >>
> >> Thanks
> >> aki
>

Reply via email to