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 250807

Summary: Make Maven projects even easier to use by showing, Other Sources, Test Sources and Test Packages
Product: projects Reporter: rjdkolb
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 8.0.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description rjdkolb 2015-03-02 09:43:07 UTC
Netbeans really makes working with Maven a pleasure.

However, when creating a new project from the default JAR and WAR archetypes, the archetypes don't create a 'src/main/resources' ,  'src/test/resources' and 'src/test/java' directory.

As far as I can see the only way to create 'src/test/java' folder is to use the Wizard to create a JUnit , the 'Files' tab or at a OS level.
For the other directories, the user needs to manually create the directories using the Files tab, or using the OS.

What I suggest is that the 'Other Sources', 'Test Sources' and 'Test Packages' always be visible (perhaps slightly greyed out)
When the user creates a file in 'Test Sources' and 'src/test/java' does not exist, 'src/test/java' should be created etc.

I think this will make Maven even easier to use in Netbeans.

Dependencies for instance is always visible even if the pom.xml does not include dependencies.
Comment 1 brettryan 2015-03-02 16:54:32 UTC
A workaround for the moment to create the other folders is to use the workaround suggested for bug [1](250824).

As this is part of the archtype that creates the folder structure, the one being [2](maven-archtype-webapp) you may want to consider trying a different archtype that's available or [3](creating your own custom archtype)

To brows the other archtypes available:

 1. Choose new project
 2. Choose maven > project from archtype
 3. Search and experiment with some of the existing archtypes, suggest searching : webapp.

 [1]: https://netbeans.org/bugzilla/show_bug.cgi?id=250824
 [2]: http://maven.apache.org/plugins-archives/maven-archetype-plugin-1.0-alpha-7/examples/webapp.html
 [3]: http://maven.apache.org/plugins-archives/maven-archetype-plugin-1.0-alpha-7/examples/archetype.html