You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Senpai <it...@gmail.com> on 2014/08/27 08:52:22 UTC

Karaf keeps reinstalling dependent features

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.

Re: Karaf keeps reinstalling dependent features

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yeah, I agree for the "installing feature" message, I will improve that.

It should not impact.

Can you send the log and a thread dump to me ?

Thanks
Regards
JB

On 08/27/2014 09:03 AM, Senpai wrote:
> I see, so the "installing feature" log message is a bit irritating then.
>
> Am I right to guess that the long installation process stems from the fact
> that I am using plain filepaths instead of maven urls?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-keeps-reinstalling-dependent-features-tp4034935p4034937.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

Re: Karaf keeps reinstalling dependent features

Posted by Senpai <it...@gmail.com>.
I see, so the "installing feature" log message is a bit irritating then.

Am I right to guess that the long installation process stems from the fact
that I am using plain filepaths instead of maven urls?



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

Re: Karaf keeps reinstalling dependent features

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com