You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jean-Baptiste Onofré <jb...@nanthrax.net> on 2015/06/01 07:52:43 UTC

Re: Understanding cave:repository-proxy

Hi,

What do you have in repository.xml ?

Regards
JB

On 05/31/2015 11:00 PM, David Leangen wrote:
>
> Hi JB,
>
> Thank you very much for your reply!
>
>> you are right: repository-proxy creates the OBR metadata (repository.xml) based on an existing repository (or storage).
>>
>> However, check if the repo is registered in the obr url (obr:url-list).
>> If not, you have to register the repo with obr using cave:repository-install.
>
> I see, thanks for the hint. I missed the part about having an existing repository. :-/
>
> These are the steps I am taking:
>
>   cave:repository-create artifactory
>   cave:repository-proxy artifactory http://my.repo/repo/
>   cave:repository-install artifactory
>
> obr:url:list
> Index | OBR URL
> ----------------------------------------------------------------------------
> 0     | file:/opt/local/apache-karaf-3.0.3/cave/my-repository/repository.xml
> 1     | file:/opt/local/apache-karaf-3.0.3/cave/artifactory/repository.xml
>
> The repository is installed as an OBR URL, but:
>
> obr:list
> Name | Symbolic Name | Version
> ------------------------------
> No matching bundles
>
>
> My bundles do not show up. :-(
>
>
> Is there a step I am missing?
>
> Cheers,
> =David
>
>

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

Re: Understanding cave:repository-proxy

Posted by David Leangen <ap...@leangen.net>.
Hi,

Thanks so much for your persistent help. :-)

karaf@root()> cave:repository-scan
Command not found: cave:repository-scan

Do I need to install something?

Regards,
=David


On Jun 1, 2015, at 5:05 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:

> That's the issue ;)
> 
> Can you try a scan (cave:repository-scan) ?
> 
> Regards
> JB
> 
> On 06/01/2015 09:22 AM, David Leangen wrote:
>> 
>> Hi,
>> 
>> Looks like it is empty:
>> 
>> <repository name='artifactory' lastmodified='20150601055301.140'/>
>> 
>> 
>> Cheers,
>> =David
>> 
>> 
>>> On Jun 1, 2015, at 2:52 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>>> <ma...@nanthrax.net>> wrote:
>>> 
>>> Hi,
>>> 
>>> What do you have in repository.xml ?
>>> 
>>> Regards
>>> JB
>>> 
>>> On 05/31/2015 11:00 PM, David Leangen wrote:
>>>> 
>>>> Hi JB,
>>>> 
>>>> Thank you very much for your reply!
>>>> 
>>>>> you are right: repository-proxy creates the OBR metadata
>>>>> (repository.xml) based on an existing repository (or storage).
>>>>> 
>>>>> However, check if the repo is registered in the obr url (obr:url-list).
>>>>> If not, you have to register the repo with obr using
>>>>> cave:repository-install.
>>>> 
>>>> I see, thanks for the hint. I missed the part about having an
>>>> existing repository. :-/
>>>> 
>>>> These are the steps I am taking:
>>>> 
>>>> cave:repository-create artifactory
>>>> cave:repository-proxy artifactory http://my.repo/repo/
>>>> cave:repository-install artifactory
>>>> 
>>>> obr:url:list
>>>> Index | OBR URL
>>>> ----------------------------------------------------------------------------
>>>> 0     |
>>>> file:/opt/local/apache-karaf-3.0.3/cave/my-repository/repository.xml
>>>> 1     |
>>>> file:/opt/local/apache-karaf-3.0.3/cave/artifactory/repository.xml
>>>> 
>>>> The repository is installed as an OBR URL, but:
>>>> 
>>>> obr:list
>>>> Name | Symbolic Name | Version
>>>> ------------------------------
>>>> No matching bundles
>>>> 
>>>> 
>>>> My bundles do not show up. :-(
>>>> 
>>>> 
>>>> Is there a step I am missing?
>>>> 
>>>> Cheers,
>>>> =David
>>>> 
>>>> 
>>> 
>>> --
>>> 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: Understanding cave:repository-proxy

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
That's the issue ;)

Can you try a scan (cave:repository-scan) ?

Regards
JB

On 06/01/2015 09:22 AM, David Leangen wrote:
>
> Hi,
>
> Looks like it is empty:
>
> <repository name='artifactory' lastmodified='20150601055301.140'/>
>
>
> Cheers,
> =David
>
>
>> On Jun 1, 2015, at 2:52 PM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>> Hi,
>>
>> What do you have in repository.xml ?
>>
>> Regards
>> JB
>>
>> On 05/31/2015 11:00 PM, David Leangen wrote:
>>>
>>> Hi JB,
>>>
>>> Thank you very much for your reply!
>>>
>>>> you are right: repository-proxy creates the OBR metadata
>>>> (repository.xml) based on an existing repository (or storage).
>>>>
>>>> However, check if the repo is registered in the obr url (obr:url-list).
>>>> If not, you have to register the repo with obr using
>>>> cave:repository-install.
>>>
>>> I see, thanks for the hint. I missed the part about having an
>>> existing repository. :-/
>>>
>>> These are the steps I am taking:
>>>
>>>  cave:repository-create artifactory
>>>  cave:repository-proxy artifactory http://my.repo/repo/
>>>  cave:repository-install artifactory
>>>
>>> obr:url:list
>>> Index | OBR URL
>>> ----------------------------------------------------------------------------
>>> 0     |
>>> file:/opt/local/apache-karaf-3.0.3/cave/my-repository/repository.xml
>>> 1     |
>>> file:/opt/local/apache-karaf-3.0.3/cave/artifactory/repository.xml
>>>
>>> The repository is installed as an OBR URL, but:
>>>
>>> obr:list
>>> Name | Symbolic Name | Version
>>> ------------------------------
>>> No matching bundles
>>>
>>>
>>> My bundles do not show up. :-(
>>>
>>>
>>> Is there a step I am missing?
>>>
>>> Cheers,
>>> =David
>>>
>>>
>>
>> --
>> 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: Understanding cave:repository-proxy

Posted by David Leangen <ap...@leangen.net>.
Hi,

Looks like it is empty:

<repository name='artifactory' lastmodified='20150601055301.140'/>


Cheers,
=David


> On Jun 1, 2015, at 2:52 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> 
> Hi,
> 
> What do you have in repository.xml ?
> 
> Regards
> JB
> 
> On 05/31/2015 11:00 PM, David Leangen wrote:
>> 
>> Hi JB,
>> 
>> Thank you very much for your reply!
>> 
>>> you are right: repository-proxy creates the OBR metadata (repository.xml) based on an existing repository (or storage).
>>> 
>>> However, check if the repo is registered in the obr url (obr:url-list).
>>> If not, you have to register the repo with obr using cave:repository-install.
>> 
>> I see, thanks for the hint. I missed the part about having an existing repository. :-/
>> 
>> These are the steps I am taking:
>> 
>>  cave:repository-create artifactory
>>  cave:repository-proxy artifactory http://my.repo/repo/
>>  cave:repository-install artifactory
>> 
>> obr:url:list
>> Index | OBR URL
>> ----------------------------------------------------------------------------
>> 0     | file:/opt/local/apache-karaf-3.0.3/cave/my-repository/repository.xml
>> 1     | file:/opt/local/apache-karaf-3.0.3/cave/artifactory/repository.xml
>> 
>> The repository is installed as an OBR URL, but:
>> 
>> obr:list
>> Name | Symbolic Name | Version
>> ------------------------------
>> No matching bundles
>> 
>> 
>> My bundles do not show up. :-(
>> 
>> 
>> Is there a step I am missing?
>> 
>> Cheers,
>> =David
>> 
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com