maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Can I force a plugin to not run during parent pom execution phase?
Date Tue, 02 Apr 2013 19:41:35 GMT

A trick i use, provided the plugin has a configuration to skip a run, is
having something like this in the parent


	<inherited>false</inherited> <!-- so skip isn't inherited -->

So as you can see, inside execution i enable inheritance and outside
execution i configure the plugin to skip the run using the skipAssembly
configuration and disable inheritance

Notice that this still starts the plugin execution, but the run will end
very early when it detects it will be skipped. This might be a problem when
e.g. the plugin has a mandatory config argument that you define in the
children. In that case, the verification for the parameter will make the
build fail before you get to skip it

I know this is limited but maybe your plugin has such a configuration. or
if you wrote it yourself you can add it

If this is not useful, take a look at this. The answer was not useful to me
but the discussion is there anyway

Alejandro Endo | Software Designer/Concepteur de logiciels

From:	laredotornado-3 <>
Date:	02/04/2013 02:07 PM
Subject:	Can I force a plugin to not run during parent pom execution


I'm using Maven 3.0.3.  I've included this plugin in a profile in my parent
pom, however, when I run my parent pom, I don't want this to be executed as
part of the parent pom being built (I do want it executed for each of the
child modules).  How can I make this plugin not run during the parent
execution phase?






























Thanks, - Dave

View this message in context:

Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:


Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.

Thank You.

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