Show List
Quiz - Maven - 6
Select the right answer for below questions:
Which of the following Maven plugins is used for running unit tests?
maven-surefire-plugin
maven-failsafe-plugin
maven-antrun-plugin
maven-exec-plugin
maven-surefire-plugin
Which of the following is a valid phase in the Maven default lifecycle that runs after the package phase?
pre-integration-test
post-package
verify
pre-build
verify
Which of the following commands is used to create a new Maven project in batch mode?
mvn archetype:generate -B
mvn create:project -b
mvn -B generate:archetype
mvn project:create -b
mvn archetype:generate -B
Which of the following Maven goals is used for generating a source jar file?
jar:jar
source:jar
assembly:single
package:source
source:jar
Which of the following commands is used to install a Maven project locally?
mvn deploy
mvn install
mvn release
mvn package
mvn install
Which of the following Maven plugins is used for generating a site report in HTML format?
maven-javadoc-plugin
maven-checkstyle-plugin
maven-pmd-plugin
maven-site-plugin
maven-site-plugin
Which of the following is a valid phase in the Maven default lifecycle that runs after the install phase?
pre-clean
post-install
deploy
post-clean
deploy
Which of the following is a valid scope for a Maven dependency that is provided by the JDK or the container at runtime?
provided
compile
runtime
test
provided
Which of the following Maven plugins is used for generating a ZIP file?
maven-assembly-plugin
maven-shade-plugin
maven-zip-plugin
maven-jar-plugin
maven-zip-plugin
Which of the following commands is used to run a Maven plugin goal?
mvn goal:plugin
mvn plugin:goal
mvn -Pplugin goal
mvn plugin:goal -Pprofile
mvn plugin:goal -Pprofile
Submit
Retry
{"qz1-978368":"maven-surefire-plugin","qz1-978369":"verify","qz1-978370":"mvn archetype:generate -B","qz1-978371":"source:jar","qz1-978372":"mvn install","qz1-978373":"maven-site-plugin","qz1-978374":"deploy","qz1-978375":"provided","qz1-978376":"maven-zip-plugin","qz1-978377":"mvn plugin:goal -Pprofile"}
Leave a Comment