Community
Participate
Working Groups
For Java based languages, the xtext-maven-plugin should automatically add the generated sources to the Java compile sources using: mavenProject.addCompileSourceRoot(...) Otherwise, people have to use the build-helper plugin to add the source folders, which just adds boilerplate (see Sven's example on Github). The xtend-compiler-plugin already does this correctly.
We cannot reliable tell which of the possibly many output folders should be added as a source folder. So to support this we'd need some indication on a per outputConfiguration level.
(In reply to Sven Efftinge from comment #1) >we'd need some indication on a per outputConfiguration level. That's what I was thinking as well. I would add two boolean flags - generatesJava (added to the source roots) - generatesResources (added to the resources)