Cannot nest ‘PRJ/src/main/resource’ inside ‘PRJ/src’

I created a new Web application using Eclipse and, after Enabling Maven, I get this error updating the project:

Cannot nest 'PRJ/src/main/resource' inside 'PRJ/src'. To enable the nesting exclude 'main/' from 'PRJ/src'

Basically I removed the folder /src and create folder /src/main/java, /src/main/resources etc and this fight with the sourceDirectory tag in Build section of maven pom. To fix that, just remove this row and update the project:

<sourceDirectory>src/</sourceDirectory>
Tagged ,

One thought on “Cannot nest ‘PRJ/src/main/resource’ inside ‘PRJ/src’

  1. Fer says:

    Thanks…so Much. It’s Really help me!!!

Leave a Reply