maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Rosenberg <rosenberg.l...@gmail.com>
Subject Re: how can i have two compile phases?
Date Tue, 02 Nov 2010 10:17:53 GMT
Well, my code generator is attached and it works, the problem is that
the code generator itself has to be compiled first.

regards
Leon

On Fri, Oct 29, 2010 at 11:10 PM, Paul Benedict <pbenedict@apache.org> wrote:
> On Fri, Oct 29, 2010 at 4:03 PM, Leon Rosenberg
> <rosenberg.leon@gmail.com> wrote:
>> Hi,
>>
>> I have following requirement. I have a project, in which I have one
>> source folder which contains a code generator (run with apt), another
>> source folder
>> which contains code, which is processed by the generator from folder
>> 1, and a third folder that relies on the code generated by the second
>> folder.
>> Therefor I need two compilation executions after each other, one for
>> the generator and one for the generated code.
>> Is this possible with maven?
>>
>
> Yes. Attach your APT generation to "generate-sources" phase. That will
> be included in the following "compile" phase.... but, I believe, the
> plugin that generates the sources has to be smart enough to add it to
> the class path.
>
> ---------------------------------------------------------------------
> 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