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 169985 - Cannot create matisse form when using a maven project
Summary: Cannot create matisse form when using a maven project
Status: RESOLVED WORKSFORME
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: 2009-08-06 14:17 UTC by hironico
Modified: 2009-08-11 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the File/New dialog that does not show 'GUI form' category. (47.12 KB, image/jpeg)
2009-08-11 09:51 UTC, hironico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hironico 2009-08-06 14:17:19 UTC
Hi,

When opening an existing maven project, the File/New command does not propose to create new visual form. 
However, existing forms in the project can be openend by the matisse plugin without any problem.

Cheers!

Hironico.
Comment 1 Jan Stola 2009-08-06 19:06:53 UTC
I am sorry, I am not able to reproduce this issue. Could you, please, provide more details? What version of NetBeans do 
you use? Does it happen with all maven projects (including newly created) or with just some specific one? Could you, 
please, attach a screenshot of the File > New File ... dialog?
Comment 2 hironico 2009-08-11 09:50:14 UTC
Sure!
I'm using NB 6.7.1. 

What I'm doing:
- I've an existing pom.xml file that has not been created using NB. Therefore it does not contain the Application
Framework dependencies that are added when using the NB wizard for a new GUI project but it's not needed since it's
plain swing application.
- I use the File / Open project command.
- The project loads correctly. 
- In the source tree, there are some .form files created using matisse for MyEclipse, opening and modifying these files
works fine. The corresponding Java class is changed correctly.
- However, doing file/new does not show the 'Swing GUI form' category.

I've added a nb-configuration.xml file as well as the required dependencies (swingx, appframework) to the pom.xml file,
but nothing changes. Do I miss something ?

Attached is a screenshot of the file/new dialog.
Comment 3 hironico 2009-08-11 09:51:29 UTC
Created attachment 86077 [details]
Screenshot of the File/New dialog that does not show 'GUI form' category.
Comment 4 hironico 2009-08-11 09:57:46 UTC
Finally found it !

The packaging in the POM.xml of the project should be JAR and NOT EJB. 
Doing so enabled the file/new dialog to show up the GUI form category. 

This is correct behaviour since EJB packaging should not contain GUI forms.

Thanks for spending some time for this. 

best regards,

Hironico.