maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Podgursky <>
Subject Re: plugin execution & phase/goal selection question
Date Tue, 24 Jun 2014 04:17:48 GMT
Your goal would just be the goal from the antrun plugin that you want to
execute (in this case "run").  If you look at the list of lifecycle phases (,
you could bind your execution to whichever phase makes most sense (say,
process-resources).  So working with the example from the antrun usage (, you'd get
something like:

            <phase> process-sources </phase>
                  your ant code

so you're telling maven, run the "run" goal with this ant code during phase

On Mon, Jun 23, 2014 at 1:09 PM, kathyczv <> wrote:

> I have a POM with packaging set to 'war'.
> I want to run 'antrun' plugin just before the code is compiled. What do I
> set the plugin's phase and goal to?
> My understanding is that the phase is one of the war's phases, for example:
> 'process-resources'
> Or a default one, for example: 'initialize'
> How about the goal, is that one of the antrun's goals?
> Your help is appreciated!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message