You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Anthony Bargnesi <ab...@gmail.com> on 2012/06/17 06:03:53 UTC

Feature repositories when creating new instance

Hello,

I customized my feature repositories in the root config
file: etc/org.apache.karaf.features.cfg

featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/extra/1.0.0/xml/features
featuresBoot=config,ssh,management,kar

When I create a new instance only the shipped feature repositories are
present.  In fact the instance config file
reports:

#Features Configuration
#Sat Jun 16 23:53:35 EDT 2012
featuresBoot=config,ssh,management,kar
featuresRepositories=mvn\:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn\:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features


Why doesn't the child instance inherit the feature repositories from root?


Thanks!
Anthony Bargnesi

Re: Feature repositories when creating new instance

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I added clone command on trunk but I forgot to merge it on branches.

I will merge it in 2.3.x.

Regards
JB

On 06/18/2012 12:33 AM, Anthony Bargnesi wrote:
> I've tried admin:clone on both 2.2.8-SNAPSHOT and 2.3.0-SNAPSHOT without
> any luck.  It
> claims command not found for "admin:clone".
>
> -tony
>
> On Sun, Jun 17, 2012 at 12:39 PM, Anthony Bargnesi <abargnesi@gmail.com
> <ma...@gmail.com>> wrote:
>
>     Thanks Christian and Jean-Baptiste.  This is a great design and I
>     just wasn't aware.
>
>     -tony
>
>     On Jun 17, 2012 2:45 AM, "Jean-Baptiste Onofré" <jb@nanthrax.net
>     <ma...@nanthrax.net>> wrote:
>
>         Clone function (admin:clone) already exists in 2.2.x.
>
>         Regards
>         JB
>
>         On 06/17/2012 08:38 AM, Christian Schneider wrote:
>
>             This is by design. The new instance by default contains only
>             the feaures
>             of the default karaf installation.
>             If we would always copy all existing features and feature
>             repos then we
>             would also need a method to leave out features.
>
>             You can add features during the create command. At least in
>             Karaf 3
>             there will also be a clone function to clone an existing
>             instance. So
>             you can configure one instance as a kind of template and
>             then create
>             additional instances from it.
>
>             Christian
>
>             Am 17.06.2012 06:03, schrieb Anthony Bargnesi:
>
>                 Hello,
>
>                 I customized my feature repositories in the root config
>                 file:
>                 etc/org.apache.karaf.features.__cfg
>
>                 featuresRepositories=mvn:org.__apache.karaf.assemblies.__features/standard/2.2.7/xml/__features,mvn:org.apache.karaf.__assemblies.features/__enterprise/2.2.7/xml/features,__mvn:org.apache.karaf.__assemblies.features/extra/1.0.__0/xml/features
>
>                 featuresBoot=config,ssh,__management,kar
>
>                 When I create a new instance only the shipped feature
>                 repositories are
>                 present. In fact the instance config file
>                 reports:
>
>                 #Features Configuration
>                 #Sat Jun 16 23:53:35 EDT 2012
>                 featuresBoot=config,ssh,__management,kar
>                 featuresRepositories=mvn\:org.__apache.karaf.assemblies.__features/standard/2.2.7/xml/__features,mvn\:org.apache.__karaf.assemblies.features/__enterprise/2.2.7/xml/features
>
>
>
>                 Why doesn't the child instance inherit the feature
>                 repositories from
>                 root?
>
>
>                 Thanks!
>                 Anthony Bargnesi
>
>
>
>
>         --
>         Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         http://blog.nanthrax.net
>         Talend - http://www.talend.com
>
>

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

Re: Feature repositories when creating new instance

Posted by Anthony Bargnesi <ab...@gmail.com>.
I've tried admin:clone on both 2.2.8-SNAPSHOT and 2.3.0-SNAPSHOT without
any luck.  It
claims command not found for "admin:clone".

-tony

On Sun, Jun 17, 2012 at 12:39 PM, Anthony Bargnesi <ab...@gmail.com>wrote:

> Thanks Christian and Jean-Baptiste.  This is a great design and I just
> wasn't aware.
>
> -tony
> On Jun 17, 2012 2:45 AM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:
>
>> Clone function (admin:clone) already exists in 2.2.x.
>>
>> Regards
>> JB
>>
>> On 06/17/2012 08:38 AM, Christian Schneider wrote:
>>
>>> This is by design. The new instance by default contains only the feaures
>>> of the default karaf installation.
>>> If we would always copy all existing features and feature repos then we
>>> would also need a method to leave out features.
>>>
>>> You can add features during the create command. At least in Karaf 3
>>> there will also be a clone function to clone an existing instance. So
>>> you can configure one instance as a kind of template and then create
>>> additional instances from it.
>>>
>>> Christian
>>>
>>> Am 17.06.2012 06:03, schrieb Anthony Bargnesi:
>>>
>>>> Hello,
>>>>
>>>> I customized my feature repositories in the root config file:
>>>> etc/org.apache.karaf.features.**cfg
>>>>
>>>> featuresRepositories=mvn:org.**apache.karaf.assemblies.**
>>>> features/standard/2.2.7/xml/**features,mvn:org.apache.karaf.**
>>>> assemblies.features/**enterprise/2.2.7/xml/features,**
>>>> mvn:org.apache.karaf.**assemblies.features/extra/1.0.**0/xml/features
>>>>
>>>> featuresBoot=config,ssh,**management,kar
>>>>
>>>> When I create a new instance only the shipped feature repositories are
>>>> present. In fact the instance config file
>>>> reports:
>>>>
>>>> #Features Configuration
>>>> #Sat Jun 16 23:53:35 EDT 2012
>>>> featuresBoot=config,ssh,**management,kar
>>>> featuresRepositories=mvn\:org.**apache.karaf.assemblies.**
>>>> features/standard/2.2.7/xml/**features,mvn\:org.apache.**
>>>> karaf.assemblies.features/**enterprise/2.2.7/xml/features
>>>>
>>>>
>>>>
>>>> Why doesn't the child instance inherit the feature repositories from
>>>> root?
>>>>
>>>>
>>>> Thanks!
>>>> Anthony Bargnesi
>>>>
>>>
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>

Re: Feature repositories when creating new instance

Posted by Anthony Bargnesi <ab...@gmail.com>.
Thanks Christian and Jean-Baptiste.  This is a great design and I just
wasn't aware.

-tony
On Jun 17, 2012 2:45 AM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:

> Clone function (admin:clone) already exists in 2.2.x.
>
> Regards
> JB
>
> On 06/17/2012 08:38 AM, Christian Schneider wrote:
>
>> This is by design. The new instance by default contains only the feaures
>> of the default karaf installation.
>> If we would always copy all existing features and feature repos then we
>> would also need a method to leave out features.
>>
>> You can add features during the create command. At least in Karaf 3
>> there will also be a clone function to clone an existing instance. So
>> you can configure one instance as a kind of template and then create
>> additional instances from it.
>>
>> Christian
>>
>> Am 17.06.2012 06:03, schrieb Anthony Bargnesi:
>>
>>> Hello,
>>>
>>> I customized my feature repositories in the root config file:
>>> etc/org.apache.karaf.features.**cfg
>>>
>>> featuresRepositories=mvn:org.**apache.karaf.assemblies.**
>>> features/standard/2.2.7/xml/**features,mvn:org.apache.karaf.**
>>> assemblies.features/**enterprise/2.2.7/xml/features,**
>>> mvn:org.apache.karaf.**assemblies.features/extra/1.0.**0/xml/features
>>>
>>> featuresBoot=config,ssh,**management,kar
>>>
>>> When I create a new instance only the shipped feature repositories are
>>> present. In fact the instance config file
>>> reports:
>>>
>>> #Features Configuration
>>> #Sat Jun 16 23:53:35 EDT 2012
>>> featuresBoot=config,ssh,**management,kar
>>> featuresRepositories=mvn\:org.**apache.karaf.assemblies.**
>>> features/standard/2.2.7/xml/**features,mvn\:org.apache.**
>>> karaf.assemblies.features/**enterprise/2.2.7/xml/features
>>>
>>>
>>>
>>> Why doesn't the child instance inherit the feature repositories from
>>> root?
>>>
>>>
>>> Thanks!
>>> Anthony Bargnesi
>>>
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Feature repositories when creating new instance

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Clone function (admin:clone) already exists in 2.2.x.

Regards
JB

On 06/17/2012 08:38 AM, Christian Schneider wrote:
> This is by design. The new instance by default contains only the feaures
> of the default karaf installation.
> If we would always copy all existing features and feature repos then we
> would also need a method to leave out features.
>
> You can add features during the create command. At least in Karaf 3
> there will also be a clone function to clone an existing instance. So
> you can configure one instance as a kind of template and then create
> additional instances from it.
>
> Christian
>
> Am 17.06.2012 06:03, schrieb Anthony Bargnesi:
>> Hello,
>>
>> I customized my feature repositories in the root config file:
>> etc/org.apache.karaf.features.cfg
>>
>> featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/extra/1.0.0/xml/features
>>
>> featuresBoot=config,ssh,management,kar
>>
>> When I create a new instance only the shipped feature repositories are
>> present. In fact the instance config file
>> reports:
>>
>> #Features Configuration
>> #Sat Jun 16 23:53:35 EDT 2012
>> featuresBoot=config,ssh,management,kar
>> featuresRepositories=mvn\:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn\:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features
>>
>>
>>
>> Why doesn't the child instance inherit the feature repositories from
>> root?
>>
>>
>> Thanks!
>> Anthony Bargnesi
>
>

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

Re: Feature repositories when creating new instance

Posted by Christian Schneider <ch...@die-schneider.net>.
This is by design. The new instance by default contains only the feaures 
of the default karaf installation.
If we would always copy all existing features and feature repos then we 
would also need a method to leave out features.

You can add features during the create command. At least in Karaf 3 
there will also be a clone function to clone an existing instance. So 
you can configure one instance as a kind of template and then create 
additional instances from it.

Christian

Am 17.06.2012 06:03, schrieb Anthony Bargnesi:
> Hello,
>
> I customized my feature repositories in the root config 
> file: etc/org.apache.karaf.features.cfg
>
> featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features,mvn:org.apache.karaf.assemblies.features/extra/1.0.0/xml/features
> featuresBoot=config,ssh,management,kar
>
> When I create a new instance only the shipped feature repositories are 
> present.  In fact the instance config file
> reports:
>
> #Features Configuration
> #Sat Jun 16 23:53:35 EDT 2012
> featuresBoot=config,ssh,management,kar
> featuresRepositories=mvn\:org.apache.karaf.assemblies.features/standard/2.2.7/xml/features,mvn\:org.apache.karaf.assemblies.features/enterprise/2.2.7/xml/features
>
>
> Why doesn't the child instance inherit the feature repositories from root?
>
>
> Thanks!
> Anthony Bargnesi


-- 

Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com