You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by David Bosschaert <da...@gmail.com> on 2014/01/02 15:00:44 UTC
Generating a repository.xml for Felix OBR
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
Re: Fwd: Generating a repository.xml for Felix OBR
Posted by Neil Bartlett <nj...@gmail.com>.
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 <nj...@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
Fwd: Generating a repository.xml for Felix OBR
Posted by David Bosschaert <da...@gmail.com>.
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 <nj...@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
Re: Generating a repository.xml for Felix OBR
Posted by Neil Bartlett <nj...@gmail.com>.
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
Re: Generating a repository.xml for Felix OBR
Posted by Ferry Huberts <ma...@hupie.com>.
On 31/01/14 11:50, David Bosschaert wrote:
> On 31 January 2014 10:46, Ferry Huberts <ma...@hupie.com> wrote:
>>
>>
>> On 31/01/14 11:38, David Bosschaert wrote:
>>>
>>> On 31 January 2014 10:28, Ferry Huberts <ma...@hupie.com> wrote:
>>>>
>>>> So you're going to provide an R5 index, derived from OBR?
>>>
>>>
>>> If you're talking about an R5-compliant xml, no I wasn't planning on
>>> providing that, but I am planning to extend the Felix OBR runtime so
>>> that its able to read it. I think to provide the R5-compliant
>>
>> So you're going to provide an OBR index derived from an R5 index?
>> Seems kind of pointless to me, since the OBR format is considered
>> 'deprecated'.
>
> No not quite - I'm planning to provide an OSGi Respository Service
> implementation (OSGi Enterprise Spec chapter 132) in the Felix OBR
> subproject. It should be able to read both the proprietary Felix OBR
> xml as well as the spec-compliant repository xml and will provide an
> instance of the OSGi Repository Service in the service registry...
>
ah ok, sorry for the confusion :-)
>>> repository.xml people will probably want to use
>>> https://github.com/osgi/bindex
>>>
>>
>> That repo is kind of at a stand-still.
>> Nowadays bindex is developed at https://github.com/bndtools/bindex
>
> Oh yes, sorry wrong URL...
>
> David
>
--
Ferry Huberts
Re: Generating a repository.xml for Felix OBR
Posted by David Bosschaert <da...@gmail.com>.
On 31 January 2014 10:46, Ferry Huberts <ma...@hupie.com> wrote:
>
>
> On 31/01/14 11:38, David Bosschaert wrote:
>>
>> On 31 January 2014 10:28, Ferry Huberts <ma...@hupie.com> wrote:
>>>
>>> So you're going to provide an R5 index, derived from OBR?
>>
>>
>> If you're talking about an R5-compliant xml, no I wasn't planning on
>> providing that, but I am planning to extend the Felix OBR runtime so
>> that its able to read it. I think to provide the R5-compliant
>
> So you're going to provide an OBR index derived from an R5 index?
> Seems kind of pointless to me, since the OBR format is considered
> 'deprecated'.
No not quite - I'm planning to provide an OSGi Respository Service
implementation (OSGi Enterprise Spec chapter 132) in the Felix OBR
subproject. It should be able to read both the proprietary Felix OBR
xml as well as the spec-compliant repository xml and will provide an
instance of the OSGi Repository Service in the service registry...
>> repository.xml people will probably want to use
>> https://github.com/osgi/bindex
>>
>
> That repo is kind of at a stand-still.
> Nowadays bindex is developed at https://github.com/bndtools/bindex
Oh yes, sorry wrong URL...
David
Re: Generating a repository.xml for Felix OBR
Posted by Ferry Huberts <ma...@hupie.com>.
On 31/01/14 11:38, David Bosschaert wrote:
> On 31 January 2014 10:28, Ferry Huberts <ma...@hupie.com> wrote:
>> So you're going to provide an R5 index, derived from OBR?
>
> If you're talking about an R5-compliant xml, no I wasn't planning on
> providing that, but I am planning to extend the Felix OBR runtime so
> that its able to read it. I think to provide the R5-compliant
So you're going to provide an OBR index derived from an R5 index?
Seems kind of pointless to me, since the OBR format is considered
'deprecated'.
> repository.xml people will probably want to use
> https://github.com/osgi/bindex
>
That repo is kind of at a stand-still.
Nowadays bindex is developed at https://github.com/bndtools/bindex
>> I think that will ultimately not work out, since the R5 format is way more
>> expressive than the OBR format.
>> I'd just provide an R5 index directly from the artefacts
>
> You are correct that the R5 xml is more expressive than the OBR XML.
> So to support reading that the internal OBR representation will
> probably need to be expanded a bit. I'd rather have one runtime entity
> though, that supports both the Felix-OBR way of accessing it as well
> as the OSGi R5 Repository Service API, rather than creating two
> separate ones, TBH.
>
> But I've only looked at this for a few days now, so I might have to
> change approach if I hit a roadblock...
>
> Cheers,
>
> David
>
--
Ferry Huberts
Re: Generating a repository.xml for Felix OBR
Posted by David Bosschaert <da...@gmail.com>.
On 31 January 2014 10:28, Ferry Huberts <ma...@hupie.com> wrote:
> So you're going to provide an R5 index, derived from OBR?
If you're talking about an R5-compliant xml, no I wasn't planning on
providing that, but I am planning to extend the Felix OBR runtime so
that its able to read it. I think to provide the R5-compliant
repository.xml people will probably want to use
https://github.com/osgi/bindex
> I think that will ultimately not work out, since the R5 format is way more
> expressive than the OBR format.
> I'd just provide an R5 index directly from the artefacts
You are correct that the R5 xml is more expressive than the OBR XML.
So to support reading that the internal OBR representation will
probably need to be expanded a bit. I'd rather have one runtime entity
though, that supports both the Felix-OBR way of accessing it as well
as the OSGi R5 Repository Service API, rather than creating two
separate ones, TBH.
But I've only looked at this for a few days now, so I might have to
change approach if I hit a roadblock...
Cheers,
David
Re: Generating a repository.xml for Felix OBR
Posted by Ferry Huberts <ma...@hupie.com>.
On 31/01/14 11:15, David Bosschaert wrote:
> I started implementing the OSGi Repository service API for Felix OBR
> [1]. Currently I'm taking the approach of providing this service as a
> façade over the existing OBR functionality. So it's backward
> compatible, although I think that for certain things the main OBR code
> may need to be enhanced.
>
> If nobody complains I'd like to simply start adding things for this to
> felix/trunk/bundlerepository, making sure that the existing tests
> don't break. Ok with everyone?
>
> Cheers,
>
> David
So you're going to provide an R5 index, derived from OBR?
I think that will ultimately not work out, since the R5 format is way
more expressive than the OBR format.
I'd just provide an R5 index directly from the artefacts
>
> [1] https://issues.apache.org/jira/browse/FELIX-4370
>
> On 6 January 2014 10:09, Felix Meschberger <fm...@adobe.com> wrote:
>> Hi
>>
>> I don't know the state exactly of Felix' OBR bundle. But I agree with you that it should definitely support spec compliant files.
>>
>> Regards
>> Felix
>>
>> Am 02.01.2014 um 15:00 schrieb David Bosschaert <da...@gmail.com>:
>>
>>> 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
>>
--
Ferry Huberts
Re: Generating a repository.xml for Felix OBR
Posted by Felix Meschberger <fm...@adobe.com>.
Perfect. Thanks, David
I think this code deserves some love :-)
Regards
Felix
Am 31.01.2014 um 11:15 schrieb David Bosschaert <da...@gmail.com>:
> I started implementing the OSGi Repository service API for Felix OBR
> [1]. Currently I'm taking the approach of providing this service as a
> façade over the existing OBR functionality. So it's backward
> compatible, although I think that for certain things the main OBR code
> may need to be enhanced.
>
> If nobody complains I'd like to simply start adding things for this to
> felix/trunk/bundlerepository, making sure that the existing tests
> don't break. Ok with everyone?
>
> Cheers,
>
> David
>
> [1] https://issues.apache.org/jira/browse/FELIX-4370
>
> On 6 January 2014 10:09, Felix Meschberger <fm...@adobe.com> wrote:
>> Hi
>>
>> I don't know the state exactly of Felix' OBR bundle. But I agree with you that it should definitely support spec compliant files.
>>
>> Regards
>> Felix
>>
>> Am 02.01.2014 um 15:00 schrieb David Bosschaert <da...@gmail.com>:
>>
>>> 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
>>
Re: Generating a repository.xml for Felix OBR
Posted by David Bosschaert <da...@gmail.com>.
Just a quick update on this...
I have added an OSGi spec-compliant Repository Service to OBR. At this
point all the OSGi Repository 1.0 CT tests pass with it.
For more details see https://issues.apache.org/jira/browse/FELIX-4368
(and sub-issues).
I haven't tried it in anger yet, so it would be great if people start
playing with this :)
Cheers,
David
On 31 January 2014 10:15, David Bosschaert <da...@gmail.com> wrote:
> I started implementing the OSGi Repository service API for Felix OBR
> [1]. Currently I'm taking the approach of providing this service as a
> façade over the existing OBR functionality. So it's backward
> compatible, although I think that for certain things the main OBR code
> may need to be enhanced.
>
> If nobody complains I'd like to simply start adding things for this to
> felix/trunk/bundlerepository, making sure that the existing tests
> don't break. Ok with everyone?
>
> Cheers,
>
> David
>
> [1] https://issues.apache.org/jira/browse/FELIX-4370
>
> On 6 January 2014 10:09, Felix Meschberger <fm...@adobe.com> wrote:
>> Hi
>>
>> I don't know the state exactly of Felix' OBR bundle. But I agree with you that it should definitely support spec compliant files.
>>
>> Regards
>> Felix
>>
>> Am 02.01.2014 um 15:00 schrieb David Bosschaert <da...@gmail.com>:
>>
>>> 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
>>
Re: Generating a repository.xml for Felix OBR
Posted by David Bosschaert <da...@gmail.com>.
I started implementing the OSGi Repository service API for Felix OBR
[1]. Currently I'm taking the approach of providing this service as a
façade over the existing OBR functionality. So it's backward
compatible, although I think that for certain things the main OBR code
may need to be enhanced.
If nobody complains I'd like to simply start adding things for this to
felix/trunk/bundlerepository, making sure that the existing tests
don't break. Ok with everyone?
Cheers,
David
[1] https://issues.apache.org/jira/browse/FELIX-4370
On 6 January 2014 10:09, Felix Meschberger <fm...@adobe.com> wrote:
> Hi
>
> I don't know the state exactly of Felix' OBR bundle. But I agree with you that it should definitely support spec compliant files.
>
> Regards
> Felix
>
> Am 02.01.2014 um 15:00 schrieb David Bosschaert <da...@gmail.com>:
>
>> 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
>
Re: Generating a repository.xml for Felix OBR
Posted by Felix Meschberger <fm...@adobe.com>.
Hi
I don't know the state exactly of Felix' OBR bundle. But I agree with you that it should definitely support spec compliant files.
Regards
Felix
Am 02.01.2014 um 15:00 schrieb David Bosschaert <da...@gmail.com>:
> 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