Hi,

the transitive feature are not reinstalled if there are already installed.

Using feature:install -v, you can see:

Installing feature ...
Found installed bundle ...

So, even if the message says "Installing feature", it doesn't really install the feature as the bundles are already installed (as you can see in the messages).

Regards
JB

On 08/27/2014 08:52 AM, Senpai wrote:
My feature file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<features name="my-feature-repo">


        <feature name="sharedTypes">
                <bundle>file:../../libs/sharedTypes-0.1.jar</bundle>
        </feature>
        <feature name="my-feature1">
                <bundle>file:../../libs/my-feature1-0.1.jar</bundle>
                <feature>sharedTypes</feature>
        </feature>
        <feature name="my-feature2">
                <bundle>file:../../libs/my-feature2-0.1.jar</bundle>
                <feature>sharedTypes</feature>
        </feature>
</features>

When I install all contained features: sharedTypes, my-feature1,
my-feature2, karaf keeps reinstalling sharedTypes for my-feature1 and
my-feature2, even though it should already be installed.

As a result, the installation processes is very slow and takes several
minutes (I actually have a lot more features which are dependent on each
other, this is just a basic sample).

I use Karaf 3.0.1, is there a workaround to only install the features that
are not installed yet? Is it somehow related to plain file urls?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-keeps-reinstalling-dependent-features-tp4034935.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to