On 20 March 2012 10:49, jackett_dad <jackett_...@yahoo.com> wrote: > Anders, > > I'll look at that, then. This is in the early stages, and I'm following a > tutorial on annotation processing, where annotations in code is used to > generate code that the compiler will compile on a subsequent pass. If I put > the source beneath the target folder, I think the compiler will skip it.
build-helper mojo's add sources goal would help you while hacking... if you are writing a plugin yourself, you can add the generated code to the compile classpath from your plugin itself once out of the hacking stage > > As for my problem of a second invocation of generate-sources, I'm forced for > now to keep a flag in a singleton object that is checked before I try to > process my sources a second time. This at least gets me beyond my error, > but I need to understand why this happened in the first place, and it looks > like a complicated issue that requires a deep understanding of maven's > cycles. > > -- > View this message in context: > http://maven.40175.n5.nabble.com/generate-sources-target-called-twice-tp5577988p5579659.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org