Handling unconventional source directory for a web project in maven

后端 未结 1 1989
孤独总比滥情好
孤独总比滥情好 2020-12-06 10:01

I\'ve inherited a web project (Servlets) which is currently build inside eclipse.

I want to add maven around it. But the project\'s source directory is not following

相关标签:
1条回答
  • 2020-12-06 10:22

    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.

    0 讨论(0)
提交回复
热议问题