On 13 July 2011 11:23, Cem Koc <[email protected]> wrote:
> Hi,
>
> I have a multi module maven project. It has 5 module and 2 of them are web
> projects.
>
> I want to customize my plugins to be run at only war projects. I mean at
> parent pom level I would like to trigger my goals and only my war projects
> will be affected. Is there any way for it?
>
> As a result of this, I will not have duplicated configurations at my war
> projects pom.

if the plugins are only used in the war projects, then just put the
plugin configuration in pluginManagement then in the war projects you
just have to reference the plugin the build/plugins and inherited
configuration from pluginManagement will be pulled in automatically.

if the plugins are used in the other modules as well, then you may
need to decouple inheritance from aggregation and create a war-parent
module that contains the war config and a non-war-parent that contains
the other config.

>
> Thanks
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Parent-Pom-and-maven-goals-for-only-war-projects-tp4582234p4582234.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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