views:

180

answers:

1

How do you build a Maven project without running unit tests?

Currently restructuring some code I have for a Servlet and would like to try it out in my web browser (which means running mvn install to get the .war to upload to Tomcat). I'm fully aware my UNIT test are failing and I'm fine with that because I will fix it once I have the code the way I want. Can anyone advise?

+4  A: 
mvn -Dmaven.test.skip=true install
This commend will skip running and compiling tests. If you want to compile but not run tests use `-DskipTests`
cetnar
+1 for cetnar comment
Pascal Thivent
@cetnar - +1, I didn't know you could do that.
James Kingsbery