Hi Adam, we've got the same needs. Unfortunately I haven't found out the way to do this.
As a result I use the "activate by property" feature. But event his way doesn't not work smoothly. Actually in a parent pom, if I set the property activate.profile1 for example, its value is correctly passed to the child poms but nevertheless profile1 is not active! :( Only the property set in the command line makes it work. Hope this helps, Alexis On 9/4/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
I'm trying to use two profiles and to switch between them for occasionally. I've seen a couple of emails on this in the archives which don't resolve this issue for me so here is my problem: (1) if I set one profile to <activation><activeByDefault>true ... then I cannot de-activate it by any means. Is this intended? (2) on windows, <activation><file><missing>c:/this-profile.txt</.... doesn't work for me. I wanted to use it in combination with <exists> on the second profile, so that I could create or delete the file to toggle the profiles. (3) the most practical way at the moment is to use the command line -PmyProfile parameter, but it seems tedious with the knowledge that I should be able to make it automatic. Can anyone give me some insight into this problem? Thanks Adam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]