NetBeans Platform Module Library Dependencies In Maven

I created a NetBeans Platform Application and Module through the NetBeans IDE using the provided Maven archetype. When I tried to create a new Window, the ConvertAsProperties annotation was not recognized in the generated code. The compilation error:

package org.netbeans.api.settings does not exist

I attempted to add the org-netbeans-modules-settings dependency to the NetBeans Module to correct this. I added the dependency through the GUI and the pom was automatically updated. This did not solve the error though, as the dependency was not downloaded. For Maven to download the dependency it first has to be added to the associated NetBeans Platform Application. Once this was done, the jar file was downloaded.

NetBeans Module Libraries

NetBeans Module Libraries

NetBeans Application Libraries

NetBeans Application Libraries

This entry was posted in Programming and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *