Hi Arnaud,

Thanks for your reply. You're right that I can use <activeProfile> to make one 
profile default. But that won't help in my situation: I would need some 
'profileA' active when running release:prepare and 'profileB' active for 
release:perform. This is something I think can only be done by specifying them 
as in 'mvn -P profileA release:prepare'. Or do you have another suggestion?

Marcel

----- Original Message ----
From: Arnaud WEBER <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Tuesday, September 4, 2007 3:36:52 PM
Subject: Re: release plugin configuration

Hello,

I believe the usage of profiles is the right way to pass arguments. But 
you're wrong saying you have to specify which profile when invoking the 
goals.

In your case, you can do something like that :

    <profile>
      <id>env-dev</id>
      <properties>
        <maven.test.skip>true</maven.test.skip>
      </properties>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>env-dev</activeProfile>   
  </activeProfiles>

by adding the activeProfile tag, you'll be able to select a profile 
which will be always used on that machine.

Arnaud

Marcel Schutte a écrit :
> Hello all,
>
> Is there a way to specify different configurations for the release:prepare 
> and release:perform goals without using profiles?
>
> Specifically, what I'm trying to do is pass
>               <configuration>
>                 <arguments>-Dmaven.test.skip=false</arguments>
>               </configuration>
> to release:prepare but run release:perform with
>               <configuration>
>                 <arguments>-Dmaven.test.skip=true</arguments>
>               </configuration>
>
> I know this can be done using different profiles, but the problem is that you 
> need to specify them when invoking the goals. What I want is to describe the 
> default behavior when invoking 'mvn release:prepare'..
>
> Using two executions didn't work, they simply aren't used. This is in line 
> with what is stated at the bottom of 
> http://maven.apache.org/guides/mini/guide-configuring-plugins.html 
>
> So, any other suggestions?
>
> Regards,
> Marcel
>
>
>
>
>        
> ____________________________________________________________________________________
> Be a better Heartthrob. Get better relationship answers from someone who 
> knows. Yahoo! Answers - Check it out. 
> http://answers.yahoo.com/dir/?link=list&sid=396545433
>
> ---------------------------------------------------------------------
> 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]






       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

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

Reply via email to