Hi everybody,

I asked the same question some time ago and was redirected to the bindex tool, 
which you can download from the OSGi site. This allows you to statically 
generate a remository.xml file that reflects the contents of a repository. It 
works on maven repositories or caches. In my team, we are still working with 
Oscar and the former obr and we have developped our own tools. 

Of course a way of improving the process could be what Richard suggests, which 
is, if I understand well: integrating the construction of the repository in the 
maven building process. However I'm still not completely happy with that. I 
wonder if it would be possible to have a "maven-br" bundle which relies on a 
maven repository: that is, rather than statically generating the repository.xml 
file, let the job be done dynamically by the "maven-br" bundle.
This bundle could also exploit the maven cache mechanism.

I am aware that there are some technical problems , but I do not measure 
exactly the difficulty. The main problem I see is the consistency between the 
standard bundle installation/updating process and the installation through a 
tool like obr (what do we put in the "bundle-update" information ?). Anyway, a 
nice feature that could be added to the obr bundle could be "update through 
obr", which would result in :
- Uninstall a bundle
- Install the bundle with the same reference using the obr;
- restore the bundle's state
So that we could have http://myrepository/mybundle-1.0-20070210.121414.jar 
replaced automatically with 
http://myrepository/mybundle-1.0-20070212.123456.jar 

Regards,

Anne

-----Message d'origine-----
De : Tim Moloney [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 12 février 2007 03:45
À : felix-dev@incubator.apache.org
Objet : Re: Is there a Maven plugin to install a bundle to OBR?

I found that I can use my maven repository as my OBR by adding repository.xml.  
I copied http://oscar-osgi.sf.net/obr2/repository.xml
to ~/.m2/repository, then manually edited it to match the bundles that I've 
installed in my maven repository.

Clearly, this is manually intensive and highly error-prone.  A Maven plugin 
that parsed a bundle's MANIFEST.MF to load the <resource> elements in 
repository.xml would be ideal.  I still don't know exactly how and where to get 
all of the specific pieces of data since the OBR documentation appears a bit 
out of date.  Perhaps Richard or Peter can answer this.

Tim


Carlos Sanchez wrote:
> I heard before that people wanted to create a OBR layer on top of the 
> maven repo, I may take a look at it if someone can write what it'd 
> take.
>
> On 2/11/07, Niclas Hedhman <[EMAIL PROTECTED]> wrote:
>> On Monday 12 February 2007 08:54, Tim Moloney wrote:
>> > I've started experimenting with OBR and I can get things working by 
>> > doing several steps manually.  What do people use to automate the 
>> > installation of a bundle to an OBR?
>>
>> Personally, I used to have cron job on the server, so a any upload by 
>> Maven arriving would be examined and meta extracted and build up the 
>> OBR xml. Quite messy, and decided to kill it off.
>>
>>
>> Cheers
>> Niclas
>>
>
>

Reply via email to