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.

Bug 135427 - can't add beans from maven project
Summary: can't add beans from maven project
Status: RESOLVED DUPLICATE of bug 118694
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-20 14:49 UTC by bartvdc
Modified: 2008-06-06 10:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bartvdc 2008-05-20 14:49:02 UTC
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.
Comment 1 Jiri Vagner 2008-05-21 08:33:15 UTC
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. ;)
Comment 2 bartvdc 2008-05-21 09:11:01 UTC
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. 
Comment 3 Jiri Vagner 2008-05-23 08:17:39 UTC
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.
Comment 4 Jiri Vagner 2008-06-06 10:29:36 UTC

*** This issue has been marked as a duplicate of 118694 ***