maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahim Essaid <>
Subject Activating a profile (add its build.plugins) from a plugin during validate phase
Date Fri, 07 Feb 2014 04:45:38 GMT

Is it possible to activate a profile programmatically from a Mojo (or a
plugin lifecycle extension) in Maven 3?  I am trying to understand whether
or not I can add the "build.plugins" from an inherited (but inactive)
profile to the currently executing project during the validate phase. I
know I can do this with a custom ProfileActivator but I'd really like to do
this in a plugin to simplify sharing this functionality. I don't mind if
this involves using some internal APIs but I don't know where to start
looking. Any tips are greatly appreciated.


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