How to run or not tests when I’m using maven ?

First you can configure or project for always run the tests or not .


To skip running the tests for a particular project, set the skipTests property to true.


You can also skip the tests via the command line by executing the following command:

$ mvn clean install -DskipTests=true

           This will allow you to run with tests disabled by default and to run them with this command:

$ mvn clean install -DskipTests=false

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s