Netbeans plugins, able to compile and build != able to install in a clean netbeans

People reported my minimal plugins can’t install in their netbeans. I concluded these:

1) able to compile and build NOT EQUAL to able to install in a clean netbeans
2) able to install your plugin in your netbeans NOT EQUAL to able to install in a clean netbeans

When you meet this error : Project depends on packages not accessible at runtime

Just add the library to in pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.github.mcheung63</groupId>
        <artifactId>netbeans-minimap</artifactId>
        <version>2.8</version>
        <packaging>nbm</packaging>
        <name>Minimap</name>
        <description>Display the code minimap, programmer can overlook their code.</description>
        <developers>
                <developer>
                        <name>Peter</name>
                        <email>mcheung63@hotmail.com</email>
                        <roles>
                                <role>Founder</role>
                        </roles>
                </developer>
        </developers>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>nbm-maven-plugin</artifactId>
                                <version>3.13</version>
                                <extensions>true</extensions>
                                <configuration>
                                        <!--<useOSGiDependencies>false</useOSGiDependencies>-->
                                        <moduleDependencies>
                                                <dependency>
                                                        <id>org.netbeans.api:org-netbeans-modules-editor-lib2</id>
                                                        <type>impl</type>
                                                </dependency>

read count : 26