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 - No easy way to create a resource if src\main\resources doesn't exist
Summary: No easy way to create a resource if src\main\resources doesn't exist
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 08:22 UTC by terje7601
Modified: 2015-10-01 08:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.