You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Adam Hardy <ad...@cyberspaceroad.com> on 2006/08/04 12:20:24 UTC

profile activation & deactivation

I have the following profiles [1] in my settings.xml, in order that the 
'developer' profile will filter out the integration tests via a profile 
section in one project's pom, while the normal profile (for continuous 
integration on another machine without my settings.xml) will not see the 
filter and will therefore run them.

However occasionally I do want to run the integration tests but I can't 
deactivate my 'developer' profile. Yet from the mailing archives [2] I 
understand that the <activeByDefault> profile should automatically 
DE-activate when I execute:

mvn -Pnormal test

Yet this doesn't happen. Is my understanding incorrect?

[1]
   <profiles>
     <profile>
       <id>developer</id>
       <activation><activeByDefault>true</activeByDefault></activation>
       <repositories ... etc
     </profile>
     <profile>
       <id>normal</id>
       <repositories .... etc
     </profile>
   </profiles>

[2] http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114014964303554&w=2

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: profile activation & deactivation

Posted by Jim Christenson <ji...@wolterskluwer.com>.
I am having the same problem.

Initially I put the profile combinations into a 'master-pom' but want to
move this definition to the global settings to eliminate a site-specific
pom. The <activeByDefault> does work at the pom/master-pom level, but I
can't make it work at the settings.xml or profiles.xml level. 

Any new information?

Jim


Adam Hardy-4 wrote:
> 
> I have the following profiles [1] in my settings.xml, in order that the 
> 'developer' profile will filter out the integration tests via a profile 
> section in one project's pom, while the normal profile (for continuous 
> integration on another machine without my settings.xml) will not see the 
> filter and will therefore run them.
> 
> However occasionally I do want to run the integration tests but I can't 
> deactivate my 'developer' profile. Yet from the mailing archives [2] I 
> understand that the <activeByDefault> profile should automatically 
> DE-activate when I execute:
> 
> mvn -Pnormal test
> 
> Yet this doesn't happen. Is my understanding incorrect?
> 
> [1]
>    <profiles>
>      <profile>
>        <id>developer</id>
>        <activation><activeByDefault>true</activeByDefault></activation>
>        <repositories ... etc
>      </profile>
>      <profile>
>        <id>normal</id>
>        <repositories .... etc
>      </profile>
>    </profiles>
> 
> [2]
> http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114014964303554&w=2
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/profile-activation---deactivation-tf2050383.html#a5820137
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org