I'm working on a NetBeans plugin for TeaVM:
https://frequal.com/TeaVM/TeaVMForNetBeans.html

The first feature, hyperlinking to HTML templates from Java code, went
relatively smoothly.

Implementing the next feature is giving me difficulties, I'm hoping someone
on this list can help me solve it.  I'm trying to add support for the TeaVM
elements, like <std:foreach> in the HTML editor.  I found the Angular
support class "AngularHtmlExtension", which looks similar to what I need:
https://github.com/apache/netbeans/blob/master/webcommon/html.angular/src/org/netbeans/modules/html/angular/AngularHtmlExtension.java

However, I can't get the new TeaVM class I'm writing
(TemplateHtmlExtension) to load and be recognized.

During the build, I get this error, could this be causing the problem?

[INFO] --- nbm-maven-plugin:4.1:manifest (default-manifest) @ teavm4nb ---
[INFO] NBM Plugin generates manifest
[WARNING] Module has friend dependency on org.netbeans.modules.html.editor
but is not listed as a friend.
[WARNING] Module has friend dependency on
org.netbeans.modules.html.editor.lib but is not listed as a friend.

I have tried various versions of the nbm-maven-plugin.  I have added and
removed dependencies.  I have tried the
'OpenIDE-Module-Module-Dependencies' manifest entry.  So far nothing has
worked.  I either get:
* Class Not Found exceptions at runtime, or
* The TeaVM HtmlExtension class doesn't load (constructor not called)

Thanks for any advice you can provide.

Reply via email to