Another method is to tell the surfire plugin to skip testing. Just add this
to the plugins:
<plugins>
<!-- Skip surefire plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
I used this a lot because I run my own plugin to handle JUnit4.x because the
surefire one has too many issues with it. So I need the tests compiled but
not run by surefire. But still need to execute the test phase so my plugin
runs.
ciao
Derek
jp4 wrote:
>
> I would like to be able to compile my test cases without actually running
> them. I use maven.test.skip=true but that seems to prevent not only the
> test execution but the test compilation. Is there a way to compile
> without running test cases. I would prefer not to mess with the pom
> files, but do it via the command line like -Dmaven.test.skip=true.
>
> Thanks,
>
> jp4
>
--
View this message in context:
http://www.nabble.com/Can-you-compile-test-cases-without-running-them-tf3016005s177.html#a8381021
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]