felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John E. Conlon" <jcon...@verticon.com>
Subject Re: Improving integration between maven and osgi
Date Wed, 31 Jan 2007 22:56:43 GMT
Carlos Sanchez wrote:
> On 1/31/07, Richard S. Hall <heavy@ungoverned.org> wrote:
>> Chris Custine wrote:
>> > You know, something just occured to me...  if the maven repository 
>> starts
>> > getting populated with quite a few jars/bundles, wouldn't it be nice
>> > to have
>> > an OBR sitting on top of it serving up the bundles that have proper
>> > manifest
>> > data?  On a smaller scale, maybe something like this could be built 
>> into
>> > Archiva?
>> >
>> > Just a crazy thought if there are any takers  :-D
>>
>> This has been a pipe dream for a while. The thought was that we could
>> just run Peter Kriens' bindex tool over a Maven repo to generate the OBR
>> repo.xml file and we'd be done...still working on it, though. We have
>> been trying to collaborate with the Maven guys on getting Maven to
>> generate bundles, but it is slow going since everyone it busy.
>
> now I'm fully committed ;)
Think of the possibilities of Maven as a runtime repository as well as a 
develop time repository.   Chris mentioned OBR, but Maven repos filled 
with bundles would also be an enabler for maven aware (Initial 
Provisioning Service) Management Agents!
>
>>
>> -> richard
>>
>> >
>> > Chris
>> >
>> >
>> >
>> > On 1/31/07, Richard S. Hall <heavy@ungoverned.org> wrote:
>> >>
>> >> Carlos Sanchez wrote:
>> >> > ok, that's fine, i wanted to get a sense of what would fit in the
>> >> > bundle plugin as default, what optional, and what won't fit at 
>> all ;)
>> >>
>> >> Well, if you really want to play with it, I would recommend 
>> creating a
>> >> plugin that does exactly what you suggest and seeing how well it 
>> works
>> >> and if there is general interest.
>> >>
>> >> However, if you were just getting a feel for ideas, then you should
>> >> consider if the default capabilities of the plugin (as described 
>> in my
>> >> other response) meet the needs you are trying to address. I think 
>> we all
>> >> agree that it would be nice if Maven generated JARs could 
>> automatically
>> >> be used as bundles, we just chose different approaches to achieve 
>> that.
>> >>
>> >> -> richard
>> >>
>> >> >
>> >> > On 1/31/07, Chris Custine <chris.custine@gmail.com> wrote:
>> >> >> I think I understand what you are trying to do as far as 
>> getting the
>> >> >> maven-bundle-plugin to use more of the pom.xml data, but I 
>> agree with
>> >> >> Richard in saying that Require-Bundle can be troublesome and I
>> >> >> definitely
>> >> >> wouldn't want it to be a default mechanism because it would 
>> start new
>> >> >> users
>> >> >> on the wrong foot if they didn't know any better.
>> >> >>
>> >> >> I think in general, there is an impedance mismatch between OSGi
>> >> bundle
>> >> >> dependencies and Maven project dependencies so for now I am not

>> sure
>> >> >> it can
>> >> >> get much better than the what the maven-bundle-plugin does today.
>> >> >>
>> >> >> Chris
>> >> >>
>> >> >> On 1/31/07, Carlos Sanchez <carlos@apache.org> wrote:
>> >> >> >
>> >> >> > Hi all,
>> >> >> >
>> >> >> > I'm trying to make maven generate OSGi bundles based in the
>> >> >> information
>> >> >> > of the pom as much as possible. That implies generating
>> >> >> "Require-bundle"
>> >> >> > headers based on the dependencies section of the pom instead
of
>> >> >> > autodiscovered "Import-packages".
>> >> >> >
>> >> >> > I'd take groupId.artifactId as bundle name and dependency
>> >> version as
>> >> >> > bundle version.
>> >> >> >
>> >> >> > In the future this could be the standard for any jar 
>> generated by
>> >> >> Maven.
>> >> >> >
>> >> >> > It will assume that dependencies are already available as
OSGi
>> >> >> bundles,
>> >> >> > although I'm working on a recursive mode that will generate
>> >> >> > one bundle for each dependency scanning the whole tree of
>> >> transitive
>> >> >> > dependencies.
>> >> >> >
>> >> >> > Please let me know if this sounds right for the
>> >> maven-bundle-plugin.
>> >> >> > Any comments appreciated ;)
>> >> >> >
>> >> >> > --
>> >> >> > I could give you my word as a Spaniard.
>> >> >> > No good. I've known too many Spaniards.
>> >> >> >                              -- The Princess Bride
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >>
>> >
>>
>
>


Mime
View raw message