I am generating some source files at compile time using annotation processors, it is a very powerful feature. But I want to generate also some facelets components. I don't know how to create non java files in the webapp folder. I know I can do this creating a maven plugin, but I want to do it with javac annotation processors. Is it possible? Any advice?
Clarifications:
The idea is to generate some xhtml files (facelets tags and components) right under the webapp folder of the sources (maven project) based on JPA entities. So I have created an AnnotationProcessor, it is fired automatically by javac at compile time and using the javax.annotation.processing API I can generate files under target/generated-sources only.
I have found a workaround, creating a dummy file under target/generated-sources and using its URI to resolve the src/main/webapp, but if are there any more elegant solution using the API it will be welcome.