On 3 April 2013 23:39, Wayne Fay wrote:
> IMO the right way of doing this is to use pluginManagement and add 1-2
> lines referring to this plugin in the various children poms where the
> plugin should be executed. This also satisfies the "least surprise"
> test.
>
It is better to "positively" co
> Actually I don't see that as a trick at all.
This breaks my "principle of least surprise" test. Without being
explicitly told what that pom fragment would do or running it myself,
I wouldn't be entirely certain how Maven would be behave in the parent
or in the children.
> If a future version of
Actually I don't see that as a trick at all.
If a future version of Maven were to break the feature (add the same
execution twice, once with inherited=true and the second with
inherited=false and the inherited=false configuration is closer so wins)
then I would consider that a serious bug.
Just m
> Thanks to all for your answers. Alejandro, tried yours and it worked. Loved
> the fact it didn't require any configurations in the child projects. Rock
I'd be slightly concerned with his answer (trick) because it seems
like a bug that might get fixed at some point. So long as you realize
this
Thanks to all for your answers. Alejandro, tried yours and it worked. Loved
the fact it didn't require any configurations in the child projects. Rock
on, - Dave
--
View this message in context:
http://maven.40175.n5.nabble.com/Can-I-force-a-plugin-to-not-run-during-parent-pom-exec
; ${test.mysql.db.password}
>
>
> ${project.build.directory}/db.changelog-master.xml
>
> false
>
>
>
>
> update
>
>
>
>
>
> Thanks, - Dave
-goal-on-child-modules-but-not-on-parent
Alejandro Endo | Software Designer/Concepteur de logiciels
From: laredotornado-3
To: users@maven.apache.org,
Date: 02/04/2013 02:07 PM
Subject:Can I force a plugin to not run during parent pom execution
phase?
Hi,
I
.user}
>
> ${test.mysql.db.password}
>
>
> ${project.build.directory}/db.changelog-master.xml
>
> false
>
>
>
>
> update
>
>
>
5.n5.nabble.com/Can-I-force-a-plugin-to-not-run-during-parent-pom-execution-phase-tp5752479.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additio