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 255637

Summary: No easy way to create a resource if src\main\resources doesn't exist
Product: projects Reporter: terje7601
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description terje7601 2015-10-01 08:22:45 UTC
To reproduce, simply create a new Maven project. The folder src\main\resources isn't created.
If that folder doesn't exist, there's no easy way to create a resource (I don't consider going to the Files view & manually creating the folder to be easy).

In my opinion, the best solution would be this: when creating a new file in the project root, NetBeans checks the kind of file, and automatically puts it:
- under Source Packages (src\main\java) if any kind of .java file is created
- under Other Sources (src\main\resources) if any other kind of file is created

This solution would immediately also solve another issue, namely that currently, if you create a file in the project root, it won't show up in the Projects view & you have to go to the Files view to move your file somewhere else manually.