Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

OSGi examples? #52

Open
pnabbefeld opened this issue Nov 8, 2018 · 3 comments
Open

OSGi examples? #52

pnabbefeld opened this issue Nov 8, 2018 · 3 comments

Comments

@pnabbefeld
Copy link

Using nbm-maven-plugin 4.1, I'm not able to figure out how to add OSGi dependencies - could You probably provide some examples?

My module's source is located at: https://github.com/pnabbefeld/NbProjectManagement
I'm using NB 10.0vc3 on JDK 11, but I've also installed every JDK since 1.6.
Just build and run the module - a popup will be shown, saying the 3 JAXB module dependencies cannot be loaded as modules. Probably a bug?

@jboesl
Copy link

jboesl commented Nov 8, 2018

AFAIK the felix version currently intgerated with netbeans doesn't work with Java9 or later. I did update it in my appilcation to 5.6.10 and now it works.

@pnabbefeld
Copy link
Author

I've applied Your patch to my copy of NB repository, but I still cannot load the OSGi modules needed:
java.io.IOException: Cannot enable StandardModule:org.netbeans.modules.pm.DocsTree jarFile: /home/peter/NetBeansProjects/ProjectManagement/DocsTree/target/nbm/netbeans/extra/modules/org-netbeans-modules-pm-DocsTree.jar; problems: [module com.sun.xml.bind.jaxb_impl > 2.3.0.1, module com.sun.xml.bind.jaxb_core > 2.3.0.1, module jaxb_api > 2.3.0]

@jboesl
Copy link

jboesl commented Nov 11, 2018

It seems you need other versions of your modules. But I think your issue has noting in common with the nbm-maven-plugin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants