I have a situation where I need to have a folder containing Java sources used as a source folder for several maven projects "next to each other" in a tree structure. Due to dependency differences for the maven projets I cannot create an artifact containing the compiled version of the sources, but need to have each project treat it as a source folder in addition to src/main/java.
Apparently Maven can do this easily by adding another source folder located in "../foo/src", but m2e refuses to do this, and for this to work well for us, I need to have it working in Eclipse.
How would I go at having a structure like:
/common/src
/a/pom.xml (add source folder ../common/src)
/a/src/main/java/...
/b/pom.xml (add source folder ../common/src)
/b/src/main/java/....
and get it working in Eclipse?
(note: I am aware of http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01988.html - it is, however, from 2011)