Question: How do you skip the tests when running a mvn package command?

  1. Use -Dtest=skip
  2. Use -DskipTests=true
  3. Use -Dtests=pass
  4. Use a plugin that can be configured to skip tests

Answer: The correct answer of the above question is Option B:Use -DskipTests=true