felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Bartlett <njbartl...@gmail.com>
Subject Re: Fwd: Generating a repository.xml for Felix OBR
Date Thu, 02 Jan 2014 16:47:52 GMT
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 (david.bosschaert@gmail.com) 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 <njbartlett@gmail.com> 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 (david.bosschaert@gmail.com)  
> 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: users-unsubscribe@felix.apache.org  
> For additional commands, e-mail: users-help@felix.apache.org  
>  

---------------------------------------------------------------------  
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org  
For additional commands, e-mail: users-help@felix.apache.org  


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message