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 - Use BndtoolsLauncher to start OSGi processes
Summary: Use BndtoolsLauncher to start OSGi processes
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven OSGi bundles (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Stupka
URL: http://njbartlett.name/bndtools-runti...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 16:47 UTC by Jesse Glick
Modified: 2014-05-12 13:09 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.