You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by prenaud76 <pa...@ericsson.com> on 2010/07/16 01:57:01 UTC

How to skip tests during release:prepare?

This sounds very basic, but release:prepare insists on running the test phase
although I purposely set the -Dmaven.test.skip=true property. Problem is: I
don't want to run tests during a release and I cannot seem to find a way to
skip them.


Do you know of a way?


(Using the git scm provider)


Tx.
-- 
View this message in context: http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223821.html
Sent from the Maven - Users mailing list archive at Nabble.com.

RE: How to skip tests during release:prepare?

Posted by Martin Gainty <mg...@hotmail.com>.
i use the feature when i want to create a jar to bypass potential bogus Surefire testcase..
(for qa distro i make sure testcases are compiled and executed)

 

glad to hear that worked for you
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



 

> Date: Fri, 16 Jul 2010 06:41:50 -0700
> From: patrick.renaud@ericsson.com
> To: users@maven.apache.org
> Subject: Re: How to skip tests during release:prepare?
> 
> 
> YES !!!!! This trick is working. Never saw that option before.
> 
> 
> Many tx. :-)
> 
> -- 
> View this message in context: http://maven-users.828.n2.nabble.com/How-to-skip-tests-during-release-prepare-tp5299875p5301941.html
> Sent from the maven users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

Re: How to skip tests during release:prepare?

Posted by prenaud76 <pa...@ericsson.com>.
YES !!!!! This trick is working. Never saw that option before.


Many tx. :-)

-- 
View this message in context: http://maven-users.828.n2.nabble.com/How-to-skip-tests-during-release-prepare-tp5299875p5301941.html
Sent from the maven users mailing list archive at Nabble.com.

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


Re: How to skip tests during release:prepare?

Posted by Leon Franzen <le...@tvworks.com>.
Have you tried this?:

-Darguments='-Dmaven.test.skip=true'
-- 
View this message in context: http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223830.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


RE: How to skip tests during release:prepare?

Posted by Martin Gainty <mg...@hotmail.com>.
mettez un release.properties sur le classpath qui contient les propriétés ajustées 

 

release.properties

maven.test.skip=true

 

fait cette aide?
Martin 
______________________________________________ 
Note de déni et de confidentialité

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




 

> Date: Thu, 15 Jul 2010 16:57:01 -0700
> From: patrick.renaud@ericsson.com
> To: users@maven.apache.org
> Subject: How to skip tests during release:prepare?
> 
> 
> This sounds very basic, but release:prepare insists on running the test phase
> although I purposely set the -Dmaven.test.skip=true property. Problem is: I
> don't want to run tests during a release and I cannot seem to find a way to
> skip them.
> 
> 
> Do you know of a way?
> 
> 
> (Using the git scm provider)
> 
> 
> Tx.
> -- 
> View this message in context: http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223821.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Re: How to skip tests during release:prepare?

Posted by Cai Wei <jn...@gmail.com>.
Also you can try:

mvn -Dmaven.test.skip=true release:prepare

2011/12/6 cemartins <ce...@netcabo.pt>

> easy - here's the command:
>
> *mvn -Darguments="-DskipTests=true" release:prepare*
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p5049179.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to skip tests during release:prepare?

Posted by cemartins <ce...@netcabo.pt>.
easy - here's the command:

*mvn -Darguments="-DskipTests=true" release:prepare*


--
View this message in context: http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p5049179.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: How to skip tests during release:prepare?

Posted by Paul Benedict <pb...@apache.org>.
Doubt it will make a difference, but you can try -DskipTests=true.
Perhaps the alias will have another effect?

On Mon, Jul 19, 2010 at 12:57 AM, Stephen Connolly
<st...@gmail.com> wrote:
> the reason to bother compiling is to verify that the release build will work
> when the version numbers have been transformed. But if you don't mind borked
> tags in your SCM....
>
> On 19 July 2010 01:26, Zac Thompson <za...@gmail.com> wrote:
>
>> I think the preparationGoals property could also be useful here
>>
>> e.g. -DpreparationGoals=clean (if you're not going to test, why bother
>> compiling during prepare at all?)
>>
>>
>> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#preparationGoals
->>
>> Zac
>>
>> On Thu, Jul 15, 2010 at 4:57 PM, prenaud76 <patrick.renaud@ericsson.com
>> >wrote:
>>
>> >
>> > This sounds very basic, but release:prepare insists on running the test
>> > phase
>> > although I purposely set the -Dmaven.test.skip=true property. Problem is:
>> I
>> > don't want to run tests during a release and I cannot seem to find a way
>> to
>> > skip them.
>> >
>> >
>> > Do you know of a way?
>> >
>> >
>> > (Using the git scm provider)
>> >
>> >
>> > Tx.
>> > --
>> > View this message in context:
>> >
>> http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223821.html
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>>
>

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


Re: How to skip tests during release:prepare?

Posted by Zac Thompson <za...@gmail.com>.
On Sun, Jul 18, 2010 at 10:57 PM, Stephen Connolly
<st...@gmail.com> wrote:
> the reason to bother compiling is to verify that the release build will work
> when the version numbers have been transformed. But if you don't mind borked
> tags in your SCM....

True: if you want to do anything beyond the test phase before
tagging the code, this won't work.

(I'm not scared by version number transformation ... I haven't had that
break a build for me yet.  Without running tests, you have no idea
if anything will "work".  You're really just checking that the compile
/ package will probably run without error.  Of course, if your <scm>
info is incorrect then the whole thing could still fall apart in 'perform'.
My point was merely that the preparationGoals are just a way to
hedge your bets anyway, and depending on your process, you
might or might not care to do that.)

Zac

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


Re: How to skip tests during release:prepare?

Posted by Stephen Connolly <st...@gmail.com>.
the reason to bother compiling is to verify that the release build will work
when the version numbers have been transformed. But if you don't mind borked
tags in your SCM....

On 19 July 2010 01:26, Zac Thompson <za...@gmail.com> wrote:

> I think the preparationGoals property could also be useful here
>
> e.g. -DpreparationGoals=clean (if you're not going to test, why bother
> compiling during prepare at all?)
>
>
> http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#preparationGoals
>
> Zac
>
> On Thu, Jul 15, 2010 at 4:57 PM, prenaud76 <patrick.renaud@ericsson.com
> >wrote:
>
> >
> > This sounds very basic, but release:prepare insists on running the test
> > phase
> > although I purposely set the -Dmaven.test.skip=true property. Problem is:
> I
> > don't want to run tests during a release and I cannot seem to find a way
> to
> > skip them.
> >
> >
> > Do you know of a way?
> >
> >
> > (Using the git scm provider)
> >
> >
> > Tx.
> > --
> > View this message in context:
> >
> http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223821.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
>

Re: How to skip tests during release:prepare?

Posted by Zac Thompson <za...@gmail.com>.
I think the preparationGoals property could also be useful here

e.g. -DpreparationGoals=clean (if you're not going to test, why bother
compiling during prepare at all?)

http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#preparationGoals

Zac

On Thu, Jul 15, 2010 at 4:57 PM, prenaud76 <pa...@ericsson.com>wrote:

>
> This sounds very basic, but release:prepare insists on running the test
> phase
> although I purposely set the -Dmaven.test.skip=true property. Problem is: I
> don't want to run tests during a release and I cannot seem to find a way to
> skip them.
>
>
> Do you know of a way?
>
>
> (Using the git scm provider)
>
>
> Tx.
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-skip-tests-during-release-prepare-tp1223821p1223821.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>