Running a plugin only once after the whole build pass

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Running a plugin only once after the whole build pass

Neeraj Mahajan
Hi ,

I have multi module project and each module produces a  text file after the
end of package phase. My requirement is to aggregate those text files and
generate/print a summary from the aggregated text file at the end of maven
build.

Could you please suggest how I can achieve this in maven build ?

Kind Regards,
Neeraj Mahajan
Reply | Threaded
Open this post in threaded view
|

Re: Running a plugin only once after the whole build pass

Thomas Broyer-2
This needs to be built into the plugin that will do the aggregation. The
mojo needs to be marked as being an "aggregator":
https://maven.apache.org/developers/mojo-api-specification.html

On Mon, Nov 26, 2018 at 12:55 PM Neeraj Mahajan <[hidden email]>
wrote:

> Hi ,
>
> I have multi module project and each module produces a  text file after the
> end of package phase. My requirement is to aggregate those text files and
> generate/print a summary from the aggregated text file at the end of maven
> build.
>
> Could you please suggest how I can achieve this in maven build ?
>
> Kind Regards,
> Neeraj Mahajan
>