Given that maven treats resources differently to .class and .java files, this could be a different folder, as you say in the pull request description.

If MavenProject.addResource works as it is though we may not need to change this.

There is also a MavenProjectHelper.addResource method that may also work slightly differently. Will test with M2E and see how it goes like this first.