Am Dienstag, 26. Juni 2007 14:15 schrieb [EMAIL PROTECTED]:
> Hello,
>
> When i configure surefire in the pom in order to skip the tests,
> compilation of unit tests are done.
> But when i use the command line configuration (-Dmaven.test.skip=true),
> compilation of unit tests are not done.
>
> Has someone the same behavior? Is it a bug (already known?)

It's a feature. 

The maven-compiler-plugin respects the same environment varaible as surefire:
See:
http://maven.apache.org/plugins/maven-compiler-plugin/testCompile-mojo.html#skip

so if you pass it on command line both plugins respect it and skip the tests 
(compiling or running)

if you use pom.xml to configure your must configure both plugins.

kind regards,
Janning


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

Reply via email to