Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create src/test/resources in Maven Netbeans 8.x with no manual intervention

The default war and jar archetypes inside Netbeans don't create a src/test/resources and src/test/java directory.

Is there an easy way of creating src/test/resources inside a Maven project without going to the 'Files' tab or creating the directory manually ?

src/test/java gets created when you create a new unit test.

Most of the Netbeans Maven controls are really intuitive, but manually creating the directory is clumsy.

like image 255
rjdkolb Avatar asked Feb 26 '15 12:02

rjdkolb


1 Answers

To create new source folder,

  1. Right click on maven project --->Click on Build Path ----->Click on New Source Folder
  2. New source folder window will open, give the name to your folder example - src/test/source
  3. click on Finish
like image 96
aniket Avatar answered Sep 19 '22 15:09

aniket