This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Beans from maven projects can't be added, pasted to the palette or an opened form from the projects window. you can add it from jar but that's useless if the project is still a snapshot (the jar changes). For the form you can add a bean with "choose bean", but that's not very user friendly.
I created a maven project (New Project > Maven > Maven project) and add new class MavenButtonBean (it just extends JButton class). And then I wanted to compile this single file, because before d&d into form or palette bean must be compiled. And I didn't find "compile single file" action. So I had to compile whole project and new version of jar was created. Everytime, with every single change inside my component it creates new version of jar. So why not add bean into palette from this jar? Only once. After changes inside my maven button and compilation of maven project, IDE is adding from palette changed customized component from updated jar file. In my opinion this is not useless scenario. Yes, maybe we can help maven users and add jar and component into palette automatically somehow while d&d bean from maven project tree. But user has to add jar just once and this is not so painful and time-consuming procedure. ;)
I don't understand why maven projects should be handled different of other projects. In other projects one can d&d the component from a project on to a form, so if it doesn't for maven it's a defect.
While user is dropping component from project tree into form, we are looking for some build artefacts (compiled jar, classes, etc.) and we are using tool for executing queries over ant-based projects. We are not able run query for maven project now, I will discuss this issue with nb maven project developer.
*** This issue has been marked as a duplicate of 118694 ***