Rafael Toledo Rafael Toledo - 6 months ago 15
Java Question

How do I set in the pom to not compile tests?

How do I set in the pom to not compile tests in Maven? I've tried:

<properties>
<skipTests>true</skipTests>
</properties>


but in that case, Maven compile the tests but don't run them. I need Maven don't compile my tests.

Answer

In my case a solution was to put tests in a profile (e.g. runTests), so when I want to run these tests, I add the parameter -PrunTests. Thanks for the replies.

Comments