🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Roadmap and Maven: all 10 questions

Quiz: Roadmap and Maven · Question 10 of 10

You run ./mvnw package. Which phases run before the jar is built?

You run ./mvnw package. Which phases run before the jar is built?

  1. A.Only package
  2. B.install and deploy
  3. C.validate, compile and test
  4. D.None; package skips tests always
Answer & explanation

Correct answer: validate, compile and test

Maven runs every lifecycle phase up to the one you ask for, in order.

Can you get the rest right without peeking?

Take the timed Quiz: Roadmap and Maven quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →