To make it even stranger, if you add the source folder, it compiles and runs, but Demo.java still shows errors in the editor. Also, type completion does not work. I'll see what the JDT devs have to say about this.
I know about the lifecycle mapping file. It's just that I did not get around adding it. I added the transformer to the project to keep things together. Resolution of plugin dependencies from the reactor is a bit wonky in maven on the commandline as well.
I've also started experimenting with writing a CompilationParticipant. It was rather easy to get things going. I've already got a CompilationParticipant that's loaded by eclipse and notified on project builds. What do you think would be a good approach for this Participant? I was thinking about taging base-classes and transformed-classes from a ProjectConfigurator and use this information in the CompilationParticipant to generate the classes. The thing I'm not sure about is how to tag the projects. I can use a Nature, but a more lightweight solution seem session or persistent properties.
Best regards,
Emond Papegaaij