maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <>
Subject Re: generate-sources target called twice
Date Tue, 20 Mar 2012 11:05:04 GMT
On 20 March 2012 10:49, jackett_dad <> 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:
> Sent from the Maven - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message