You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by cristal <da...@jpmorgan.com> on 2006/06/06 15:23:57 UTC
Skipping Test Phase.
Is there a way that the maven2 build can skip the test phase even if the
src/test/java/* is in the folder structure?
Thanks.
--
View this message in context: http://www.nabble.com/Skipping-Test-Phase.-t1741757.html#a4733181
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
Re: Skipping Test Phase.
Posted by Patrick Kimber <ma...@gmail.com>.
To skip the unit tests:
mvn -Dmaven.test.skip=true
or add the following to pom.xml:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
On 06/06/06, cristal <da...@jpmorgan.com> wrote:
>
> Is there a way that the maven2 build can skip the test phase even if the
> src/test/java/* is in the folder structure?
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/Skipping-Test-Phase.-t1741757.html#a4733181
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Skipping Test Phase.
Posted by Roland Asmann <Ro...@cfc.at>.
Use '-Dmaven.test.skip=true' on your command-line.
Roland
On Tuesday 06 June 2006 15:23, cristal wrote:
> Is there a way that the maven2 build can skip the test phase even if the
> src/test/java/* is in the folder structure?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Skipping-Test-Phase.-t1741757.html#a4733181 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Skipping Test Phase.
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
you can do that either by giving maven a property at the command line 'maven.test.skip':
mvn -Dmaven.test.skip=true ...
or specify it in the plugin configuration permanently:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
-Tim
cristal schrieb:
> Is there a way that the maven2 build can skip the test phase even if the
> src/test/java/* is in the folder structure?
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/Skipping-Test-Phase.-t1741757.html#a4733181
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Skipping Test Phase.
Posted by Wendy Smoak <ws...@gmail.com>.
On 6/6/06, cristal <da...@jpmorgan.com> wrote:
>
> Is there a way that the maven2 build can skip the test phase even if the
> src/test/java/* is in the folder structure?
Try: mvn install -Dmaven.test.skip=true
You can also redefine <testSourceDirectory> so that Maven can't find
your test sources.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE : Skipping Test Phase.
Posted by Olivier Lamy <ol...@accor.com>.
Skipping test is sometimes helpful.
But skipping google not ;-) :
http://www.google.com/search?hl=en&lr=&q=mvn+skip+test&btnG=Search
--
Olivier
-----Message d'origine-----
De : cristal [mailto:david.w.liu@jpmorgan.com]
Envoyé : mardi 6 juin 2006 15:24
À : users@maven.apache.org
Objet : Skipping Test Phase.
Is there a way that the maven2 build can skip the test phase even if the
src/test/java/* is in the folder structure?
Thanks.
--
View this message in context:
http://www.nabble.com/Skipping-Test-Phase.-t1741757.html#a4733181
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
This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org