You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wo...@AtosOrigin.com on 2008/10/06 10:05:08 UTC
AW: from workaround to workaround 3
I tried everything now: set activeByDefault to true, delete
activeByDefault entirely, delete the activeProfiles section, refreshed
the settings in Eclipse (what gives the error:
Error on adding indexing context local; Cannot find file
D:\projekte\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_y.fnm
)
always same result: when I execute help:active-profiles on the top-pom
'There are no active profiles'.
I am absolutely frustrated with Maven.
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:stephen.alan.connolly@gmail.com]
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, <Wo...@atosorigin.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org