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.
I have a maven based project with git vcs, in projects expanded "source packages" and "other test sources". I make a right click to "src/test/resources/" right under "Other test sources" and choose "new" "java package". I enter "foo.bar" as package name. The package appears under "Source packages" in the projects view and is created under "src/main/java". Expected behaviour: Package hierarchy is created in "src/test/resources" which was selected OR "new java package" is not available from context menu in test-resources context. (I would prefer to be able to create the package correctly instead disabling creating the package hierarchy.) Tested with "reduced tree view" and "tree view", same behaviour.
related to issue 228255
the problem lies primarily with the template code for package (and java files) that assumes that packages and java files can only be created within java source roots. And AFAIK it was designed to work this way from the beginning and is working according to the UI specifications.
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
Still present in NB 8.1