Man, I'm 0 for 3 today :(

Fair enough, I read too fast, and thought you meant to declare the profile
in the POM.

You're right, there are a few defects here.

The first is that activeByDefault seems to hold a little too much power
here. It does not honor the -P flag.
If you remove "activeByDefault", then snapshot will win.

One is in the help:active-profiles goal. dev is printed twice because its
activeByDefault as well as a set activeProfile. In version 2.0.2 dev was not
duplicated. Unless this is desired behavior.
Is this a defect?

Finally, within your JIRA issue, I think the line:
    id test with a property <test>dev</test>
is meant to read
    id dev with a property <test>dev</test>

Eric

On 4/6/06, Olivier Lamy <[EMAIL PROTECTED]> wrote:
>
> Look at the email I have send : In my $HOME/.m2/settings.xml .
> All profiles are in my settings.xml no one in my pom.
>
> I have tryed mvn help:active-profiles
> Output says :
> The following profiles are active:
>
> - snapshots (source: settings.xml)
> - dev (source: settings.xml)
> - dev (source: settings.xml)
>
> Strange I don't have two profiles with id dev in my settings.xml.
>
> IMHO it's an issue, I have record one to have a response :
> http://jira.codehaus.org/browse/MNG-2206.
> Download the attached pom, add profiles in your settings.xml and look
> ;-))
>
> - Olivier
>
> -----Message d'origine-----
> De : Eric Redmond [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 6 avril 2006 15:57
> À : Maven Users List
> Objet : Re: Trouble or misunderstanding with profile and settings. ?
>
>
> Why is the profile in your POM, but you're attempting to activate is
> within your settings.xml?
>
> Try and put the profile in settings, or activate it in the POM.
>
> Why debuggin profile activation issues, this goal is useful:
>
> mvn help:active-profiles
> <http://maven.apache.org/plugins/maven-help-plugin/active-profiles-mojo.
> html>
> Eric
>
> On 4/6/06, Olivier Lamy <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I don't know if it's a trouble but I have made a simple test. My pom
> > contains : <plugin>
> > <artifactId>maven-antrun-plugin</artifactId>
> > <executions>
> > <execution>
> > <phase>validate</phase>
> > <configuration>
> > <tasks>
> > <echo>${test}</echo>
> > </tasks>
> > </configuration>
> > <goals>
> > <goal>run</goal>
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
> >
> > In my $HOME/.m2/settings.xml, the profile (id=dev) with
> > <activeByDefault>true</activeByDefault> contains : <properties>
> > ..
> > <test>dev</test>
> > </properties>
> > The profile (id=snapshots) contains :
> > <properties>
> > ..
> > <test>snapshots</test>
> > </properties>
> >
> > All are in the section :
> > <activeProfiles>
> > <activeProfile>dev</activeProfile>
> > <activeProfile>snapshots</activeProfile>
> > </activeProfiles>
> >
> > mvn validate :
> > [echo] dev
> > mvn -P snapshots validate :
> > [echo] dev
> >
> >
> > Is there any trouble somewhere : antrun plugin or in maven or a know
> > issue ? Or I musunderstand something ?
> >
> > - Olivier
> >
> >
> >
> > This e-mail, any attachments and the information contained therein
> > ("this
> > message") are confidential and intended solely for the use of the
> > addressee(s). If you have received this message in error please send
> it back
> > to the sender and delete it. Unauthorized publication, use,
> dissemination or
> > disclosure of this message, either in whole or in part is strictly
> > prohibited.
> > **********************************************************************
> > Ce message electronique et tous les fichiers joints ainsi que  les
> > informations contenues dans ce message ( ci apres "le message" ), sont
> > confidentiels et destines exclusivement a l'usage de la  personne a
> laquelle
> > ils sont adresses. Si vous avez recu ce message par erreur, merci  de
> le
> > renvoyer a son emetteur et de le detruire. Toutes diffusion,
> publication,
> > totale ou partielle ou divulgation sous quelque forme que se soit non
> > expressement autorisees de ce message, sont interdites.
> > **********************************************************************
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to