Show List

Quiz - Maven - 3

78%

Public Average Score
Select the right answer for below questions:

Which of the following is the correct syntax for excluding a transitive dependency in Maven?
">
">
">
">

Which of the following commands is used to skip running tests during a Maven build?
mvn skipTests
mvn -DskipTests
mvn testSkip
mvn test -skip
mvn -DskipTests

Which of the following Maven plugins is used for generating Java code from XML schemas?
JAXB2
JAXP
JAX-RS
JAX-WS
JAXB2

Which of the following is NOT a valid packaging type in Maven?
jar
zip
war
ear
zip

Which of the following is the correct syntax for specifying a profile in the Maven settings.xml file?
">
">
">
">

Which of the following Maven goals is used for generating a Javadoc for a project?
javadoc:jar
javadoc:generate
javadoc:doc
javadoc:create
javadoc:jar

Which of the following commands is used to create a Maven project without any of the default plugins?
mvn archetype:generate -Dfilter=archetype
mvn archetype:generate -Dfilter=maven-archetype
mvn archetype:generate -Dfilter=none
mvn archetype:generate -Dfilter=blank
mvn archetype:generate -Dfilter=none

Which of the following is a valid phase in the Maven site lifecycle?
site
package
deploy
clean
site

Which of the following is the default name for the main source folder in a Maven project?
src
main
source
java
java

Which of the following is NOT a valid scope for a Maven dependency?
compile
test
runtime
package
package

Submit
Retry
{"qz1-889946":"","qz1-889947":"mvn -DskipTests","qz1-889948":"JAXB2","qz1-889949":"zip","qz1-889950":"","qz1-889951":"javadoc:jar","qz1-889952":"mvn archetype:generate -Dfilter=none","qz1-889953":"site","qz1-889954":"java","qz1-889955":"package"}

    Leave a Comment


  • captcha text