maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: generate-sources target called twice
Date Tue, 20 Mar 2012 11:05:04 GMT
On 20 March 2012 10:49, jackett_dad <jackett_dad@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message