🎙 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 2 of 10

Which Maven command produces a runnable jar in target/?

Which Maven command produces a runnable jar in target/?

  1. A.mvnw clean
  2. B.mvnw validate
  3. C.mvnw package
  4. D.mvnw spring-boot:stop
Answer & explanation

Correct answer: mvnw package

package runs compile and test first, then builds the jar.

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 →