Minisha
Minisha

Reputation: 2237

To disable compile , clean , validate test in maven

I am looking for ways to only run maven test phase, I tried this but it didn't work. Any pointers to fix this would help

mvn test -Dmaven.clean.skip=true -Dmaven.validate.skip=true -Dmaven.compile.skip=true

Upvotes: 1

Views: 310

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35805

You can run mvn surefire:test, but it is recommended to run the other phases before.

Upvotes: 1

Related Questions