Details
Description
Here is the related discussion
by Dan Tran Nov 06, 2008; 01:07pm :: Rate this Message: - Use ratings to moderate ![]()
Activate a profile when project.version is not SNAPSHOT
is it possible?
-D
by Stephen Connolly-2 Nov 06, 2008; 01:35pm :: Rate this Message: - Use ratings to moderate ![]()
AFAIK, No... the core does not support it and plugins cannot activate
profiles as the active profiles have been decided before the validate phase
by Dan Tran Nov 06, 2008; 01:39pm :: Rate this Message: - Use ratings to moderate ![]()
sounds like a new feature to request for maven-profile component
by mihobson Nov 07, 2008; 01:26am :: Rate this Message: - Use ratings to moderate ![]()
I've been wanting this for a while but figured it'd be solved by
custom profile activators, currently sitting in trunk:
http://docs.codehaus.org/display/MAVEN/Custom+Profile+Activators
Perhaps a new snapshot profile activator would be best for the
short-term. Have you raised an issue I could watch?
Cheers,
Mark
Issue Links
- is duplicated by
-
MNG-1753
support improved property based profile activation
-
Updated issue from just matching snapshot versions to matching a regex on the version. This would allow profiles to be activated for different stages of a project's iteration, e.g. major, minor, bug fix, etc. Very handy for running clirr against a project when API changes are not allowed, for example.