NbMavenProject from a cutom nb plugin

Pablo Rodriguez Pina <[email protected]> Mon, 15 Sep 2025 23:49:59 +0200
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <CACKWw-4yJ24p=RraazTZQx83zZXDQHzsNcsv1BXF=O1UMqszuA@mail.gmail.com>
Been 3 days going crazy, not even grok, chatgpt or gemini can help me (and
they have tried hard)

Is it possible to use NbMavenProject from a plugin that i make if my plugin
is not a "friend dependency" Nomatter what i try, the plugins classloader
wont make see it at runtime.

Also, what is going on with this org.jspecify.jspecify is that in a
different maven repo? Its not in central

<dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-maven-apisupport</artifactId>
            <version>${netbeans.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.jspecify.jspecify</groupId>
                    <artifactId>jspecify</artifactId>
                </exclusion>
            </exclusions>
            <scope>provided</scope>
        </dependency>

What are you supposed to do to use maven apis from a plugin? Is it possible?