1

When I am trying to create a new web application project using maven, I am getting duplicate src folder in the project directory structure. Is it expected or I am doing anything wrong?

If it is expected why is it creating two directories with the same name, Is there any specific reason?

enter image description here

Bruce
  • 78
  • 7

2 Answers2

5

It's not creating two directories with the same name. Just check with your explorer, or the command line.

It's just Eclipse showing two different views (one as a directory of the project, one as a Java resource directory) of the same directory.

JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255
0

They both are same. Only thing is your IDE is showing first one in Java build path format and other one as normal. If you go to folder structure you would notice that they are physically same path.

This happens when the folder structure in the build path.

But still since your IDE is differentiating them, use the first one in the picture -> src/main/resources

shashi
  • 11
  • 1
  • 4