Hi.
Try this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
Regards.
2008/2/19, Neeraj Joshi <[EMAIL PROTECTED]>:
> Hi All,
> I am trying to disable execution of unit tests for a project as follows
>
> <project .....>
> <dependencies>
> ......
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <skipTests>true</skipTests>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> When I do
> > mvn install
> The JUnit tests still get executed.
> Only if I do
> > mvn install -Dmaven.test.skip=true
>
> This project is part of a profile (other projects within this profile need
> JUnit execution to be enabled
> as a result I can't set it as a property at the profile level).
>
> What am I doing wrong?
> Any help appreciated!
> Thanks
> Neeraj
>
> Apache Imperius - http://incubator.apache.org/imperius
>
> Neeraj Joshi
> Autonomic Computing Policy Development
> Tivoli, IBM
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Manuel J. Recena Soto
* www.manuelrecena.com[/blog]
* [EMAIL PROTECTED], [EMAIL PROTECTED]
* +34 609710280 (ES)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]