karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Features automatic vs manual install
Date Wed, 02 Aug 2017 15:56:46 GMT
Hi,

you have two ways to do that:

- on <feature/> you have the "install" attribute. It's "auto" by default, 
however, you can use "manual". It should work.
- in a feature, on the <bundle/> you have the start attribute. You can control 
if a bundle stays in resolved state or if it's automatically started.

Regards
JB

On 08/02/2017 05:43 PM, afbagwe wrote:
> I'm trying to write a features XML file that will be included in a KAR for
> deployment.
> While my individual features are functional, when I perform the command:
> kar:install file:/path/to/kar
> everything gets loaded into Karaf, but all the features are automatically
> started. While this is fine for some core pieces there are several optional
> ones that I don't want installed by default as they would be a choice
> depending on the needs of the application.
> How can I construct my features file to accomplish this?
> I have already looked at the XSD for features and trying to use the install
> attribute on the feature tag, but setting it to either "false" or "manual"
> doesn't stop auto installation from occurring. The XSD says this attribute
> is a simple string with a minimum length of 1 character with no indication
> of what the possible values are.
> Thanks,
> Allen
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Features-automatic-vs-manual-install-tp4051144.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

Mime
View raw message