I am retro-fitting a Maven project around a set of Android projects (written using Eclipse). Some of the Android projects are libraries of common code and resources. Since the Android library projects have resources, they have their own R, which I reference from within the common library code. Following the instructions in the Maven: Complete Reference, chapter 14, I have got mostly everything working. The library sources are included and compiled from the projects that reference the library. However, compilation fails, since the generated library R is not included in the library sources. How do I get the Maven compilation to work?