[platform-dev] Is it possible to mixing netbeans wrappers and osgi modules in netbeans rcp.

  • From: "Philip Wilkinson" < >
  • To:
  • Subject: [platform-dev] Is it possible to mixing netbeans wrappers and osgi modules in netbeans rcp.
  • Date: Thu, 26 Apr 2012 11:10:14 +0000

Hi,

Can anybody tell me if it is possible to use a netbeans module wrapper of an 
osgi module and a osgi module directly, in the same maven built netbeans rcp 
application.

I want to migrate our 30 or so netbeans wrappers to osgi module pairs, to 
just using the osgi module directly. I want to migrate 1 module pair at a 
time so but once I have set useOSGiDependencies and changed the dependency 
from the wrapper to the osgi module directly, all the other wrapper 
dependencies fail with transient dependecies not available at runtime.

I've attached a rcp example which when run adds two menu items to about menu, 
About1 calls osgibundle1, About2 calls osgibundle2.

so we have two osgi modules...
osgibundle1 and osgibundle2

osgibundle1 is wrapped in netbeans module netbeansbundle1

osgi-maven-project-sample declares dependencies on netbeansbundle1 and 
osgibundle2

building osgi-maven-project-sample causes the following error...

Adding OSGi bundle dependency - com.mycompany:osgibundle2
Project uses classes from transitive module 
com.mycompany:osgibundle1:jar:1.0-SNAPSHOT which will not be accessible at 
runtime.

Replacing dependency on netbeansbundle1 with osgibundle1 works as both 
dependent modules are osgi.
removing dependency on osgibundle2, commenting out code in Action1 and 
removing [code]<useOSGiDependencies>true</useOSGiDependencies>[code] from 
osgi-maven-project-parent pom.xml

Is it possible to get the two modules netbeansbundle1 and osgibundle2 to 
co-exist?

We are using netbeans 7.1 and maven 3.0.3.
(Also posted this question on stack overflow) 
(http://stackoverflow.com/questions/10314057/how-do-i-gradually-migrate-netbeans-wrappers-of-osgi-modules-to-direct-dependenc)

Thanks,

Phil Wilkinson.[/url]




Attachments: 
http://forums.netbeans.org//files/osgitest_824.zip



[platform-dev] Is it possible to mixing netbeans wrappers and osgi modules in netbeans rcp.

Philip Wilkinson 04/26/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close