This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191737

Summary: Use BndtoolsLauncher to start OSGi processes
Product: projects Reporter: Jesse Glick <jglick>
Component: Maven OSGi bundlesAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 7.0   
Hardware: All   
OS: All   
URL: http://njbartlett.name/bndtools-runtime#BndtoolsLauncher
Issue Type: TASK Exception Reporter:

Description Jesse Glick 2010-11-08 16:47:36 UTC
From Neil Bartlett:

---%<---
You might want to take a look at bndtools.launcher, here on GitHub:
https://github.com/njbartlett/bndtools.launcher

This is a runtime component that is independent of bndtools and
Eclipse, and it's how I run an OSGi Framework from within bndtools.
Everything is driven by a simple properties file, and it can launch
any OSGi R4.2 compliant framework in a standard way (i.e. without
using any Equinox or Felix specific code).

A really cool feature is that the launcher occasionally checks whether
the properties file has been changed, or whether any of the runtime
bundles have changed. If they have then it either updates or
installs/uninstalls bundles on the fly. So in bndtools, as soon as you
save a Java source file, the bundle is rebuilt and then redeployed
into the runtime. (Of course you can also turn this feature OFF if you
don't want it!)

Documentation is here: http://njbartlett.name/bndtools-runtime#BndtoolsLauncher

To make this work with Maven I think you would just have to map the
logical bundle names from the Maven repository and/or workspace into
full absolute paths.
---%<---
Comment 1 Jesse Glick 2011-02-01 17:29:22 UTC
http://paxrunner.ops4j.org/space/Pax+Runner is an alternative.