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.
Some maven archetypes do not create the src/main/java folder. If you use Netbeans, and try to add a class to this project, netbeans throws the file in the root of the project. You have to go to the Files tab to be able to see the file again. If you create the src/main/java folder manually, then create the class, it puts the files in the project properly.
a duplicate of #97170, if the archetype created from the IDE, we add the test and main java folders automatically to avoid the problem. A manual workaround is to create the files (project reload or IDE restart might be necessary in this case) *** This issue has been marked as a duplicate of 97170 ***