I am unable to verify my plugin

"mcheung63" <[email protected]> Sat, 15 Apr 2017 16:10:25 +0000
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
The tutorial on web teach me to click "Install/Reload in Development plugin" to debug. This step work perfectly, but when I pack my plugin into NBM and submit to plugin central. It either said, I use hard dependency so don't let me verify OR the plugin crash, can't load the BookmarkList class (https://github.com/mcheung63/netbeans-minimap/issues/8) . I am sure this bug exist because I installed a clean netbeans in VM to test my plugin.

All I want to do is read out the bookmarks line numbers, so I have to use "org-netbeans-modules-editor-bookmarks", but just can't make it works.

Steps to produce:
1) git clone https://github.com/mcheung63/netbeans-minimap.git
2) right click project, click "clean and build", it should success
3) click "Install/Reload in Development plugin" OR "Run project", it said "NetBeans: Error redeploying NBM module in development IDE."

Below are the code I read out bookmark information

Code:
	
BookmarkList bookmarkList = (BookmarkList) document.getProperty(BookmarkList.class);
isBookmarkLine(bookmarkList, 1);

boolean isBookmarkLine(BookmarkList bookmarkList, int lineNo) {
		if (bookmarkList == null) {
			return false;
		}
		for (Bookmark bookmark : bookmarkList.getBookmarks()) {
			if (bookmark.getLineNumber() == lineNo) {
				return true;
			}
		}
		return false;
	}



Thanks
Peter