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 221638 - Adding Groovy class to Java project (Maven) breaks the structure of the project
Summary: Adding Groovy class to Java project (Maven) breaks the structure of the project
Status: RESOLVED INCOMPLETE
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: Macintosh (x86) Mac OS X
: P1 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 13:01 UTC by michal.owsiak
Modified: 2012-11-12 15:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen_1 (18.70 KB, image/png)
2012-11-07 13:01 UTC, michal.owsiak
Details
screen_2 (45.75 KB, image/png)
2012-11-07 13:02 UTC, michal.owsiak
Details
screen_3 (10.58 KB, image/png)
2012-11-07 13:03 UTC, michal.owsiak
Details
project directory (13.50 KB, application/x-tar)
2012-11-07 13:14 UTC, michal.owsiak
Details
Correct project structure (48.10 KB, image/jpeg)
2012-11-07 13:28 UTC, Martin Janicek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michal.owsiak 2012-11-07 13:01:45 UTC
Created attachment 127308 [details]
screen_1

1. Create empty Maven project (File -> New Project -> Maven -> Java Application)
2. result: screen_1.png
3. Select default Java package and create new Groovy Class (screen_2.png)
4. Project structure is changed (no more Java classes): screen_3.png
Comment 1 michal.owsiak 2012-11-07 13:02:59 UTC
Created attachment 127309 [details]
screen_2
Comment 2 michal.owsiak 2012-11-07 13:03:14 UTC
Created attachment 127310 [details]
screen_3
Comment 3 Martin Janicek 2012-11-07 13:11:30 UTC
Michale, could you please attach the project (I mean the one which seems to be broken after creating groovy class)? I'm following your steps, but it works for me just fine.
Btw: What version of NB are you using?
Comment 4 Martin Janicek 2012-11-07 13:12:39 UTC
Especially I'm interested in pom.xml (before and after) ..the problem has to be there, not sure why I'm not able to reproduce.
Comment 5 michal.owsiak 2012-11-07 13:14:38 UTC
Created attachment 127311 [details]
project directory
Comment 6 michal.owsiak 2012-11-07 13:15:18 UTC
My configuration is:

java -version
java version "1.7.0_10-ea"
Java(TM) SE Runtime Environment (build 1.7.0_10-ea-b14)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Product Version: NetBeans IDE 7.3 Beta (Build 201210011125)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Mac OS X version 10.7.5 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/michalo/Library/Application Support/NetBeans/7.3beta
Cache directory: /Users/michalo/Library/Caches/NetBeans/7.3beta
Comment 7 Martin Janicek 2012-11-07 13:28:48 UTC
Created attachment 127315 [details]
Correct project structure

Weird, even with your project it's working correctly. I'm attaching the screenshot from my environment.
Comment 8 Martin Janicek 2012-11-07 13:31:02 UTC
Could you take a look into your Tools/Plugins/Installed to see if there is a groovy feature installed and enabled?
Comment 9 Martin Janicek 2012-11-12 15:27:25 UTC
I'm sorry Michal but I can't move forward with this issue without more information. I didn't seen this behavior on my environment so far, so it's most probably caused a different configuration on your machine.
Could you please also test if the problem persist in NetBeans 7.3beta2?

Thanks in advance and please reopen the issue if you will find some additional information.