Handling unconventional source directory for a web project in maven

Just add this to your pom in the build section.

<sourceDirectory>${basedir}/src</sourceDirectory>

Here’s the relevant section of the POM doc on configuring the directories.

Leave a Comment