NetBeans Platform And Maven: Bad package component in

I created a NetBeans Platform application and module using Maven. When NetBeans tried to load the module on application startup, the following error was shown on the output:

WARNING [org.netbeans.core.startup.ModuleList]: Error encountered while reading your.module
java.lang.IllegalArgumentException: Bad package component in your.module

The cause of the error was the module manifest file generated by Maven:

Manifest-Version: 1.0
OpenIDE-Module-Localizing-Bundle: your/module/Bundle.properties
OpenIDE-Module-Layer: your/module/layer.xml

It is incomplete and requires the OpenIDE-Module entry be populated as below:

OpenIDE-Module: your.module

Add this and the application launches without error.

Netbeans Platform version 6.9.1

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 *