Sure I can, but the whole point is that I don't want to add extra arguments to 
the mvn release:prepare invocation. I want to configure my poms in such a way 
that a default prepare/perform cycle will run the way I want it.

Disabling junit tests on release:perform is just one of the things I want to 
configure. I used that as an example in this post.

Should my conclusion be that for goals that are not bound to a lifecycle it is 
not possible to provide a different configuration for the separate goals of the 
mojo? If this is true, I will file an enhancement request.

Marcel

----- Original Message ----
From: "Siegmann Daniel, NY" <[EMAIL PROTECTED]>
To: Maven Users List <users@maven.apache.org>
Sent: Tuesday, September 4, 2007 11:18:13 PM
Subject: RE: release plugin configuration

Can't you disable the Junit tests normally? "-Dmaven.test.skip=true" It means 
some extra typing on each release though.

--
Daniel Siegmann
FJA-US, Inc.
512 7th Ave. 15th Flr. New York, NY 10018
(212) 840-2618 x139

-----Original Message-----
From: Marcel Schutte [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 04, 2007 12:05 PM
To: Maven Users List
Subject: Re: release plugin configuration

I want to run test in release:prepare but skip them in release:perform. And 
that's because I just don't want to run them twice on exactly the same code.

----- Original Message ----
From: Michael McCallum <[EMAIL PROTECTED]>
To: Maven Users List <users@maven.apache.org>
Sent: Tuesday, September 4, 2007 4:38:12 PM
Subject: Re: release plugin configuration

why do you want to skip tests in release:prepare?

On Wednesday 05 September 2007 02:20, Marcel Schutte wrote:
> 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 <users@maven.apache.org>
> 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]

--
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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






       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

---------------------------------------------------------------------
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]






       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow

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

Reply via email to