Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Peter Nabbefeld
Thank You Geertjan, I'll go to ask him. Peter Am 28.06.2018 um 18:57 schrieb Geertjan Wielenga: The person to interact with 100% on this is Tim Boudreau who wrote that code. Gj On Thu, Jun 28, 2018 at 6:39 PM, Peter Nabbefeld wrote: nb-javac is used to scan the Java source code e.g. for c

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Geertjan Wielenga
The person to interact with 100% on this is Tim Boudreau who wrote that code. Gj On Thu, Jun 28, 2018 at 6:39 PM, Peter Nabbefeld wrote: > nb-javac is used to scan the Java source code e.g. for construction of > wicket components. Using the Java compiler to scan the source's structure > seems t

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Peter Nabbefeld
nb-javac is used to scan the Java source code e.g. for construction of wicket components. Using the Java compiler to scan the source's structure seems to be reasonable because it should be the most reliable option. The other would be to implement a parser of my own - I don't think I'll be able

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Geertjan Wielenga
The real question is why the plugin needs to do any of this -- why does it have a dependency on nb-javac? What happens when you remove it? Do you actually need that dependency at all and why? What functionality does it add? Gj On Thu, Jun 28, 2018 at 6:05 PM, Peter Nabbefeld wrote: > In some

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Peter Nabbefeld
In some Ant-based module I found this: "OpenIDE-Module-Hide-Classpath-Packages: com.sun.tools.javac.**, com.sun.tools.javadoc.**, com.sun.tools.javap.**, com.sun.tools.classfile.*". Is there sth. I can configure in nbm-maven-plugin to put this into my manifest? Peter Am 28.06.2018 um 17:49

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Peter Nabbefeld
Most NetBeans APIs belong to group "org.netbeans.api", while nb-javac belongs to "org.netbeans.external". Obviously, nbm-maven-plugin treats ths as a hint to add "Maven-Class-Path: org.netbeans.external:nb-javac-api:RELEASE82 org.netbeans.external:nb-javac-impl:RELEASE82" to the created module'

Re: How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Geertjan Wielenga
The real question is why the plugin needs to do any of this. Gj On Thu, Jun 28, 2018 at 10:59 AM, Peter Nabbefeld wrote: > > Hello, > > I've got a LinkageError when running a NetBeans plugin with a dependency > on nb-javac. The plugin uses Maven, and I've noticed the following entry in > MANIFE

How to fix a ClassLoader in a NetBeans module with external libraries?

2018-06-28 Thread Peter Nabbefeld
Hello, I've got a LinkageError when running a NetBeans plugin with a dependency on nb-javac. The plugin uses Maven, and I've noticed the following entry in MANIFEST.MF: Maven-Class-Path: org.netbeans.external:nb-javac-api:RELEASE82 org.netbeans.external:nb-javac-impl:RELEASE82 This obvio