You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Setya <js...@gmail.com> on 2016/03/26 12:34:51 UTC

All version of feature specified as dependent feature gets installed

Hi all,

In Apache Karaf 4.0.3 we have the following spring-jdbc features available:

spring-jdbc|3.1.4.RELEASE
spring-jdbc|3.2.14.RELEASE_1
spring-jdbc|4.0.7.RELEASE_3
spring-jdbc|4.1.7.RELEASE_2
spring-jdbc|4.2.2.RELEASE_1

When I install for specific version using the following command:

karaf@root()> feature:install spring-jdbc/3.2.14.RELEASE_1

The version of spring-jdbc installed correctly.

But when I put the feature as dependent feature for example:

<feature name="myfeature" description="My Feature" version="1.0.0">
        <feature version="3.2.14.RELEASE_1">spring-jdbc</feature>
</feature>

and invoke command:

karaf@root()> feature:install myfeature

All versions except 3.1.4.RELEASE will be installed causing dependency
conflict.

This is against the documentation where only the specified version will be
installed.

Any insight would be greatly appreciated.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/All-version-of-feature-specified-as-dependent-feature-gets-installed-tp4045991.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: All version of feature specified as dependent feature gets installed

Posted by Setya <js...@gmail.com>.
Hi all,

Turns out I have to specify the version in range as workaround:

<feature version="[3.2.14.RELEASE_1,3.2.14.RELEASE_1]">spring-jdbc</feature>


Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/All-version-of-feature-specified-as-dependent-feature-gets-installed-tp4045991p4045992.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: All version of feature specified as dependent feature gets installed

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

you can use version range in the version of a <feature/> element.

Regards
JB

On 03/26/2016 12:34 PM, Setya wrote:
> Hi all,
>
> In Apache Karaf 4.0.3 we have the following spring-jdbc features available:
>
> spring-jdbc|3.1.4.RELEASE
> spring-jdbc|3.2.14.RELEASE_1
> spring-jdbc|4.0.7.RELEASE_3
> spring-jdbc|4.1.7.RELEASE_2
> spring-jdbc|4.2.2.RELEASE_1
>
> When I install for specific version using the following command:
>
> karaf@root()> feature:install spring-jdbc/3.2.14.RELEASE_1
>
> The version of spring-jdbc installed correctly.
>
> But when I put the feature as dependent feature for example:
>
> <feature name="myfeature" description="My Feature" version="1.0.0">
>          <feature version="3.2.14.RELEASE_1">spring-jdbc</feature>
> </feature>
>
> and invoke command:
>
> karaf@root()> feature:install myfeature
>
> All versions except 3.1.4.RELEASE will be installed causing dependency
> conflict.
>
> This is against the documentation where only the specified version will be
> installed.
>
> Any insight would be greatly appreciated.
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/All-version-of-feature-specified-as-dependent-feature-gets-installed-tp4045991.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com