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.
Summary: | Created file in New Java Package wizard shows wrong directory to be created when src/main/java missing | ||
---|---|---|---|
Product: | projects | Reporter: | jlaskowski <jlaskowski> |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jglick |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 102711 | ||
Bug Blocks: | |||
Attachments: | NetBeans IDE 6.0m7's New Java Package with incorrect directory name |
Description
jlaskowski
2007-03-04 12:55:37 UTC
Created attachment 39154 [details]
NetBeans IDE 6.0m7's New Java Package with incorrect directory name
Also, the field name is 'Created File:' not 'Created Directory:' I can reproduce with Maven "war" project, but cannot reproduce with J2SE project of Maven "jar" or "hpi" project. Passing to Maven support to investigate. the problem is caused by the fact that war project archetype doesn't create src/main/java folder which is the default source root for java packages. That means no SourceGroup instance is created. That' what the wizard relies on. An obvious workaround is to create the src/main/java folder and reload the project. partially workarounded/fixed by creating the src/main/java and src/test/java folders on creation of a new project. Won't influence behaviour of any existing projects though. This issue seems to be already fixed,I can't reproduce it. it's still there, we just make sure to create src/main/java folder on project creation.. If you havea project without it, you shall be able to reproduce. *** Issue 171030 has been marked as a duplicate of this issue. *** Change of the default owner. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |