Show List

Quiz - Maven - 4

65%

Public Average Score
Select the right answer for below questions:

Which of the following commands is used to install a Maven artifact in the local repository?
mvn install
mvn deploy
mvn package
mvn compile
mvn install

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

Which of the following Maven plugins is used for creating an executable JAR file?
jar
assembly
shade
exec
shade

Which of the following commands is used to skip compiling the source code during a Maven build?
mvn compileSkip
mvn -Dmaven.compile.skip=true
mvn skipCompile
mvn compile -skip
mvn -Dmaven.compile.skip=true

Which of the following is a valid phase in the Maven default lifecycle?
run
pre-build
post-package
validate
validate

Which of the following Maven goals is used for generating a source code report?
checkstyle:check
javadoc:jar
cobertura:check
pmd:pmd
pmd:pmd

Which of the following commands is used to create a new Maven module as a child of an existing project?
mvn archetype:generate -Dfilter=maven-archetype
mvn archetype:generate -Dfilter=module-archetype
mvn archetype:generate -Dfilter=quickstart
mvn archetype:generate -Dfilter=webapp-archetype
mvn archetype:generate -Dfilter=quickstart

Which of the following Maven plugins is used for running integration tests?
maven-failsafe-plugin
maven-surefire-plugin
maven-antrun-plugin
maven-exec-plugin
maven-failsafe-plugin

Which of the following is a valid scope for a Maven dependency that is only used during the test phase?
testCompile
testRuntime
test
compile
test

Which of the following Maven plugins is used for generating code coverage reports?
cobertura-maven-plugin
jacoco-maven-plugin
emma-maven-plugin
istanbul-maven-plugin
jacoco-maven-plugin

Submit
Retry
{"qz1-401787":"mvn install","qz1-401788":"","qz1-401789":"shade","qz1-401790":"mvn -Dmaven.compile.skip=true","qz1-401791":"validate","qz1-401792":"pmd:pmd","qz1-401793":"mvn archetype:generate -Dfilter=quickstart","qz1-401794":"maven-failsafe-plugin","qz1-401795":"test","qz1-401796":"jacoco-maven-plugin"}

    Leave a Comment


  • captcha text