Use-case:
I have a multilevel project where the top level POM defines a number of
different profiles. In some (i.e. not all) of the sublevel projetcs I need
to execute a plugin only if a certain profile, say X, defined within top
level POM is activated by the user. 

Also the configuration of the plugin is not shared among the sublevel
modules that actually requires execution of the plugin.

What I need is a simple construction like this:
<IfActive profile="X" >
  <plugin>
  ...
  </plugin>
</IfActive>


Considerations:
I cannot just define the plugin within the profile X in the top level POM
since then every subproject would then execute the plugin once the X profile
was activated which is not ok since the execution of the plugin only applies
to some of the subprojetcs and the configuration of the plugin is project
specific.

Of course I could define a new profile within the relevant submodules that
takes care of the execution of the plugin however the number of profiles
required this way would be unmanagble.


Any suggestions on how to solve this issue ?


Best regards 
Jorgen

-- 
View this message in context: 
http://www.nabble.com/Execution-of-plugin-depending-on-the-activation-of-specific-profile-tf2050639.html#a5648574
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to