Robert, Can you please be more specific when profiles are not being activated? Out of the top of my head I can name the following:
* project import (active profiles can be explicitly declared in Advanced section of the import/checkout wizards) * dependency resolution (active profiles can be explicitly declared on Maven page in the project preferences) * launching Maven (active profiles can be explicitly declared in the Maven launch configuration preferences and as of las dev build, profiles declared in project preferences are copied into the newly created launch configuration for that project and they are also used by predefined launch shortcuts, like "Run as... / maven install"
Please also note that m2eclipse does not read settings.xml and the actual profile resolution is completely inside the Maven code. So, I would start from checking if desired behavior is actually working with the command line Maven.
regards, Eugene Robert Varttinen wrote:
I've been experimenting with m2eclipse (ver. 0.9.7) and I have some trouble getting a permanently activated profile in my settings.xml to take effect. So, I downloaded the source as Eclipse projects and started to debug and get a feel for how its internals work ... unfortunately I am not that proficient with the code and its structure yet, so it is not that obvious where to look for the profile activation and reading the relevant properties ... Managed to find out that the correct file is identified; there is a ResolverConfiguration but it returns an empty string when getActiveProfileList gets called (well a List holding an empty string). What is under investiagtion? Well, check out http://jira.codehaus.org/browse/MNG-3782 for details on what we would like to achieve (there is a simple example and a settings.xml file). We have a possible patch for the command line version. It will uploaded and added to the issue for scrutiny, soon. Back to m2eclipse; could somebody please advice on which packages, classes, to pay extra attention to when it comes to profile activation and extraction of its properties? Any pointers are welcome. Or, are we trying to do something which is already implemented and about to be released shortly? Further, if we are trying to do something which Maven, and m2eclipse, is not intended to do - please feel free to tell us ... TIA, Robert
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
