I'm pretty sure activeByDefault is not used in settings, this is for the
pom only. That's what the activeProfiles section is for.

-----Original Message-----
From: Stephen Connolly [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2008 6:27 AM
To: Maven Users List
Subject: Re: from workaround to workaround 3

On Fri, Sep 5, 2008 at 9:45 AM, <[EMAIL PROTECTED]> wrote:

> >
> > By the way, the settings.xml contains this:
> >   <profile>
> >     <id>jboss</id>
> >     <activation>
> >        <activeByDefault/>
>
>
> You need to change this to
>
>  <activeByDefault>true</activeByDefault>
>
> as
>
> assert "true".equalsIgnoreCase("") == false;
>
>
> >     </activation>
> >     <properties>
> >            <dbdriver>oracle.jdbc.driver.OracleDriver</dbdriver>
> >            <dbuser>ing_epa</dbuser>
> >            <dbpassword>ing_epa</dbpassword>
> >            <dburl>jdbc:oracle:thin:@deneb:1521:WLP</dburl>
> >                ...
> >     </properties>
> >   </profile>
> >  </profiles>
> >
> >  <activeProfiles>
> >        <activeProfile>jboss</activeProfile>
> >  </activeProfiles>
> >
>
> [Winter, Wolfgang] okay, maybe. But I activated the profile explicitly
> in the last line! Please excuse me when I criticize, but for me this
is
> bad design. This is not what a dumb user like me expects, regardless
of
> the setting of <activeByDefault>


Actually no, when you specify <activeByDefault/> (that is equivalent to
<activeByDefault>false</activeByDefault>) which AFAIK is overriding the
<activeProfiles> section.

If you had removed the <activeByDefault/> entirely it would be active

-Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to