It seems to me that we "fixed" that some time ago because of a logged issue, such that only external profiles listed in the activeProfiles section will be affected. Profiles in the POM are not included in that group.
-j On 1/30/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
What version of Maven are you using? On 1/30/07, David Jackman <[EMAIL PROTECTED]> wrote: > > In my case, there was no parent pom. > > My pom.xml contains: > <profiles> > <profile> > <id>myProfile</id> > ... > </profile> > </profiles> > > My settings.xml contains: > <activeProfiles> > <activeProfile>myProfile</activeProfile> > </activeProfiles> > > The mvn help:active-profiles command shows: "There are no active > profiles." > > Is this the correct behavior? > > > -----Original Message----- > From: Stephane Nicoll [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 28, 2007 2:31 AM > To: Maven Users List > Subject: Re: Activating a profile with settings.xml > > The current version is buggy. It does not display profiles that are > defined in the parent pom. > > Stéphane > > On 1/27/07, Eric Redmond <[EMAIL PROTECTED]> wrote: > > Profiles should be activated in this way. > > > > Try: "mvn help:active-profiles" > > See if your profile is active. > > > > Eric > > > > On 1/26/07, David Jackman <[EMAIL PROTECTED]> wrote: > > > > > > According to the documentation at > http://maven.apache.org/settings.html: > > > "Any profile id defined as an activeProfile will be active, > > > reguardless of any environment settings. If no matching profile is > > > found nothing will happen. For example, if env-test is an > > > activeProfile, a profile in a pom.xml (or profile.xml with a > > > corrosponding id will be active. If no such profile is found then > > > execution will continue as normal." > > > > > > However, I cannot get Maven to behave this way. Should profiles > > > defined in the pom be able to be activated in this way, or are the > > > docs incorrect? > > > > > > ..David.. > > > > > > > > > > > > FASTforward '07 > > > The Industry's Largest Business & > > > Technology Conference Focused on Search February 7th - 9th, San > > > Diego, CA www.fastforward07.com > > > > > > > > > > > > -- > > Eric Redmond > > http://codehaus.org/~eredmond > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > FASTforward '07 > The Industry's Largest Business & > Technology Conference Focused on Search > February 7th - 9th, San Diego, CA > www.fastforward07.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Eric Redmond http://codehaus.org/~eredmond
