You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Litton, Tom - CEPM" <To...@cepm-us.com> on 2005/07/28 00:23:00 UTC

skipping unit tests with m2

Hi guys,
 
How do you skip unit tests with maven 2.0?

I've tried "m2 -Dskip=true install" and "m2 -Dmaven.test.skip=true install".
 
I've also tried it from the configuration:
 
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <maven.test.skip>true</maven.test.skip>
            </configuration>
          </plugin>
 
Is there something i'm doing wrong?

Thanks


----------------------------------------------------------------------
The information contained in this transmission is intended only for
the personal and confidential use of the designated recipients named
herein.  If the reader of this transmission is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
transmission in error, and that any review, dissemination,
distribution, or copying of this transmission is strictly prohibited.
If you have received this communication in error, please notify the
sender and return and delete the original transmission immediately.
Thank you.


Re: skipping unit tests with m2

Posted by Emmanuel Venisse <em...@venisse.net>.
m2 -Dmaven.test.skip=true install is correct for me. Perhaps a bug fix 
after alpha-3 release

Emmanuel

Litton, Tom - CEPM wrote:
> Hi guys,
>  
> How do you skip unit tests with maven 2.0?
> 
> I've tried "m2 -Dskip=true install" and "m2 -Dmaven.test.skip=true install".
>  
> I've also tried it from the configuration:
>  
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-surefire-plugin</artifactId>
>             <configuration>
>                 <maven.test.skip>true</maven.test.skip>
>             </configuration>
>           </plugin>
>  
> Is there something i'm doing wrong?
> 
> Thanks
> 
> 
> ----------------------------------------------------------------------
> The information contained in this transmission is intended only for
> the personal and confidential use of the designated recipients named
> herein.  If the reader of this transmission is not the intended
> recipient or an agent responsible for delivering it to the intended
> recipient, you are hereby notified that you have received this
> transmission in error, and that any review, dissemination,
> distribution, or copying of this transmission is strictly prohibited.
> If you have received this communication in error, please notify the
> sender and return and delete the original transmission immediately.
> Thank you.
> 
> 


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