On 17 July 2011 11:48, Robert Scholte <rfscho...@codehaus.org> wrote: > Don't you think it's a bit weird to run the maven-compiler-plugin:compile > during the generate-sources phase? Try to keep this as they were meant to:- > generate sources during the generate-sources phase- compile the sources > during the compile phase.(within a few months you won't understand this > anymore, neither will your fellow developers)Another question: is Main a > class of the plugin or from the project using the plugin? Sounds like you are > trying to solve a chicken-egg problem... -Robert > Date: Sun, 17 Jul 2011 > 11:20:32 -0700
No, I don't think it's weird. :-) I need that class to do the source generation (it's the model). I don't want it in a separate JAR, that would be silly. There's nothing complex about this. Besides, the compilation is working fine. The Main class would be used by the plugin as the model for the source generation. So the plugin expects the source for the model (in src/main/java) and the templates (in something like src/main/templates). That seems reasonable to me. Anyway, these seem to be philosophical questions. I still don't understand why I can't load a class that's on the classpath. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org