Is there a way in Maven to compile the tests without running them ? I want to use the IDE to run specific tests and not all of them.
In case you really want to only compile the tests (skip all other phases like compile), this will do
compile
mvn org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
See the plugin bindings of the default lifecycle.