Is there a simple way to not build the test classes?
mvn clean install -Dmaven.test.skip=true
I'm not an expert at maven, but what I use in my current project is:
mvn clean install -DskipTests=true
Depending on your use case using:
mvn compile -DskipTests=true
might work for you too.