At the root project create a profile for running these tasks, e.g.

<profile>
  <id>my-superugly-hack</id>
  ...
</profile>

into that profile you put a <build> section with a <defaultGoal>
containing all the stuff you want to do separated by spaces

ideally you would also configure all the executions and the
default-cli executions of the mojos you are invoking directly

then

mvn -Pmy-superugly-hack

and your grandmother has just given birth to a boy... she'll calling him bob.

-Stephen
On 30 March 2011 12:14,  <[email protected]> wrote:
>>> Bind the goals you want to run to chosen phases.
>
> This unfortuntaly is not possible in a multimodule build,  let's take the
> dashboard plugin as an example:
>
> The dashboard:dashboard needs to run AFTER the full site has been created
> in a multimodule build (because it needs access to all checkstyle.xml of
> all child builds).
> This is because if it is just bound to some phase it would run in the
> following order:
>
> Parent-Build: dashboard (<= empty, as the dashboard want's to aggregate
> sub-builds, which didn't run yet)
> Child-Build1: dashboard (creates a dashboard for that child)
> Child-Build2: dashboard (dito)
> Build succesful.
>
> Now unfortunately the dashboard-report for the Parent-Build is still empty
> (and actually it's the most important report aggregating all others and
> giving a good overview).
> That's why
> dashboard:dashboard
> is run as a seperate goal after the full buildcycle: it is then able to
> get any report it want's to aggregate.
>
> It's the same with clover. On the parent-level to create a report, the
> childs need to be build first, for clover to be able to create a report
> aggregating all childs.
> Unfortunately maven decides not to build the childs first before running
> the life-cycle for the parent.
>
> Regards
> Stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to