That's true... I'd forgotten about the maven-bundle-plugin. Also the plugin 
generates a repository.xml under $HOME/.m2/repository for your own projects 
every time you do mvn:install.

Neil

On 2 January 2014 at 16:27:44, David Bosschaert ([email protected]) 
wrote:

Thanks Neil! That's useful information.  
In the mean time I also found that you can generate OBR repository.xml  
files via the maven-obr-plugin with the following command:  
mvn org.apache.felix:maven-obr-plugin:1.2.0:install-file  
-Dfile=<bundle> -DgroupId=<some-group-id> -DartifactId=<bsn>  
-Dversion=<version> -Dpackaging=jar  
-DobrRepository=.../somewhere/repository.xml  

In the mean time I think it would be great to start supporting the  
OSGi Repository spec in the Felix Bundle Repository. I've created few  
issues for that under:  
https://issues.apache.org/jira/browse/FELIX-4368  

Cheers,  

David  

On 2 January 2014 15:16, Neil Bartlett <[email protected]> wrote:  
> Hi David,  
>  
> I'll let somebody else answer whether Felix OBR can use the spec-compliant  
> XML. As the maintainer of bindex I can tell you that the old RFC112 format  
> is still supported if you checkout the "preR5" tag. You can also get it as a  
> zip/tarball from https://github.com/osgi/bindex/releases.  
>  
> If you are using bnd(tools) then the LocalIndexedRepo plugin will generate  
> either old-style OBR or new-style R5 spec compliant indexes, or indeed both,  
> by setting the type attribute to "OBR". See  
> http://bndtools.org/repositories.html#local-indexed-repository  
>  
> Neil  
>  
> On 2 January 2014 at 14:01:41, David Bosschaert ([email protected])  
> wrote:  
>  
> Maybe a silly question, but what is the best way to generate a  
> repository.xml file for Felix OBR these days? I would simply like to  
> generate one for a directory with bundles...  
> The Felix website suggests to use bindex [1], but bindex generates  
> OSGi spec-compliant xml files and these are different from what Felix  
> OBR supports. Or am I wrong and can I use spec-compliant  
> repository.xml files at with Felix OBR right now?  
>  
> Thanks,  
>  
> David  
>  
> [1] http://felix.apache.org/site/apache-felix-sigil-obr.html  
>  
> ---------------------------------------------------------------------  
> To unsubscribe, e-mail: [email protected]  
> For additional commands, e-mail: [email protected]  
>  

---------------------------------------------------------------------  
To unsubscribe, e-mail: [email protected]  
For additional commands, e-mail: [email protected]  

Reply via email to