Hello gang,
NetBeans 6.9 is successfully using your maven-bundle-plugin to produce bundle 
JARs with appropriate metadata. However we have problems to 
execute/debug/profile the created bundles. There is no maven plugin to do it.

NetBeans guys don't want to be OSGi experts, so rather than inventing 
something by ourselves, we would like to reuse what is provided by the OSGi 
community.

I complained about that to Richard and he said: "Write to the mailing list". 
Is anyone of you interested in creating maven-bundle-exec-plugin?

If so, let me and Jesse know. Thanks. The only advice we got so far is to use 
BndLauncher. Still, having a maven wrapper around sounds preferrable to me:
https://netbeans.org/bugzilla/show_bug.cgi?id=191737
-jt

PS: Below you can find the whole discussion we had so far...

Dne pondělí 08 listopadu 2010 17:24:29 Richard S. Hall napsal(a):
> On 11/8/10 11:11, Jaroslav Tulach wrote:
> > Hello Richard.
> > Last we were contacted by Neil Bartlett to standardize on IDE support for
> > OSGi development. I replied that we use Maven, and that is where we want
> > to standardize.
> > 
> > I also outlined that we are missing standard way to execute OSGi
> > bundle(s) and
> > 
> > that the situation is not ideal:
> >> On 11/06/2010 01:38 PM, Jaroslav Tulach wrote:
> >>> There is no maven-bundle-exec-plugin. As a result we had to hack this
> >>> by ourselves, but the solution is not very nice.
> >> 
> >> That is an understatement; it is very painful to maintain. See
> >> https://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/osgi-archetype/
> >> src /main/resources/archetype-resources/ (pom.xml + nbactions.xml) if
> >> you want to see the weird mixture of Ant and shell quoting. I don't
> >> know if you even care - perhaps for Eclipse integration you would
> >> implement your own "Run" logic, bypassing Maven - but it would be great
> >> to see a clean way of launching a container with the selected bundle
> >> (and its dependencies and maybe other bundles) activated.
> > 
> > Felix is the home for maven-bundle-plugin. Could Felix also become home
> > for maven-bundle-exec-plugin? I don't know what it takes to start such
> > effort, but it would be very welcomed...
> 
> Starting it is the easy part... :-)
> 
> The main maven-bundle-plugin guy, Stuart McCulloch, has had less time
> lately to devote to it. Not sure if you have some code to donate or you
> are hoping to find someone to lead an effort.
> 
> If you have a specific proposal, present it on d...@felix...i'm sure
> there would be a receptive crowd.
> 
> -> richard
> 
> > -jt
> > 
> >> On Sat, Nov 6, 2010 at 5:38 PM, Jaroslav Tulach
> >> 
> >> <jaroslav.tul...@oracle.com>  wrote:
> >>> Hello Neil.
> >>> 
> >>>> On 11/04/2010 05:30 PM, Neil Bartlett wrote:
> >>>>> No I haven't been in touch with Jaroslav yet. It sounds like he's the
> >>>>> person I need to speak to.
> >>> 
> >>> Yeah, probably I am. Although Jesse (CCed) may have something to add as
> >>> well.
> >>> 
> >>>>> Let me explain my motivation. I'm building an OSGi development tool
> >>>>> in Eclipse called bndtools; some details are at http://bndtools.org.
> >>>>> This is basically an alternative to the better-known Plug-in
> >>>>> Development Environment (PDE) from eclipse.org. It uses a very
> >>>>> different model, based on "bnd" by Peter Kriens.
> >>> 
> >>> In NetBeans 6.9 we started to support OSGi in many ways. However our
> >>> position is that we don't want to be OSGi experts. Rather than
> >>> inventing tools to build, package, deploy, execute bundles, we want to
> >>> reuse as much as we can.
> >>> 
> >>>>> I'm not sure how much you know about PDE, but unfortunately many OSGi
> >>>>> developers find it to be very cumbersome, and hampered by its legacy
> >>>>> from the pre-OSGi days at Eclipse.
> >>> 
> >>> There is a NetBeans Harness for ten years around - an Ant based system
> >>> for developing modules for NetBeans - a guess this is NetBeans parallel
> >>> of PDE. We have enhanced it in 6.9 to support limited set of OSGi
> >>> capabilities. However the support is primarily NetBeans Platform
> >>> oriented and "by the way" it also supports a bit of OSGi.
> >>> 
> >>>>> One of the problems with PDE is it
> >>>>> really forces a whole development team to use PDE -- it doesn't play
> >>>>> nice with other IDEs. In contrast, a bndtools project can easily be
> >>>>> worked on using another IDE or even just Emacs or VIM, because bnd
> >>>>> handles all of the build aspects. But this could be made even easier,
> >>>>> with a little collaboration...
> >>> 
> >>> We value IDE Independence. As such the primary story for developing
> >>> OSGi bundles in NetBeans IDE is to use Maven[1]. There is an excellent
> >>> maven- bundle-plugin for creating OSGi bundles (btw. it may be built
> >>> around bnd too). We use that for compilation.
> >>> 
> >>> What we are missing right now is a standard way to
> >>> execute/debug/profile a bundle. There is no maven-bundle-exec-plugin.
> >>> As a result we had to hack this by ourselves, but the solution is not
> >>> very nice. Should there be a standard maven plugin for deploying
> >>> (preferably to Felix, Equinox, etc.) we'll use it asap.
> >>> 
> >>>>> I am already working with Jan Thomä, the developer of "Osmorc", the
> >>>>> OSGi plug-in for IntelliJ. Like bndtools, Osmorc uses bnd internally
> >>>>> so it's pretty smooth already. I would like to work with NetBeans as
> >>>>> well, but I know nothing about how you guys support OSGi from a
> >>>>> tooling perspective. Would you be interested in this?
> >>> 
> >>> We don't want to be OSGi experts, thus our OSGi choice is Maven. We
> >>> solved our build issue with existing Maven plugins already. We still
> >>> need common Maven solution for execution/debugging/profiling. We are
> >>> ready to adapt anything the OSGi community comes with. We can even help
> >>> with designing such plugin.
> >>> 
> >>> -jt
> >>> 
> >>> [1] http://wiki.netbeans.org/OSGiAndNetBeans#Development_via_Maven
                

Reply via email to