You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Leon Rosenberg <ro...@gmail.com> on 2010/11/02 11:17:53 UTC

Re: how can i have two compile phases?

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 <pb...@apache.org> wrote:
> On Fri, Oct 29, 2010 at 4:03 PM, Leon Rosenberg
> <ro...@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