ashabasa
ashabasa

Reputation: 311

Resources Folder doesn't exist in my maven project

I'm trying to create a Maven project with Eclipse. I need to put my hibernate configuration file in a Folder named Resources. Which is supposed to exist in src/main/Resources. I can't find it and I don't know how to create it.

I used the webapp-javaee6 Archetype.

Should I use another Archetype ? Create my folder manually ?

Upvotes: 1

Views: 9949

Answers (4)

prab2112
prab2112

Reputation: 1034

Go to Configure build path of your Project. Under Source tab add folder resources

Upvotes: 1

vulgur
vulgur

Reputation: 61

Refresh the project or just create one by yourself

Upvotes: 0

carlspring
carlspring

Reputation: 32567

  • The name of your directory is incorrect. It should be in lowercase src/main/resources. Maven is case sensitive.

  • If the directory does not exist, simply create it.

Upvotes: 2

ngasull
ngasull

Reputation: 4216

In my opinion you could create a new simple Maven projet checking the box with "skip archetype selection".

Anyway, you also can try right clicking your project in Project Explorer > Maven > Update project configuration. This create missing (re)source folders.

Upvotes: 2

Related Questions