Show List

Quiz - Maven - 5

75%

Public Average Score
Select the right answer for below questions:

Which of the following commands is used to execute a single test method in a Maven project?
mvn -Dtest=TestClass#testMethod test
mvn test=TestClass.testMethod
mvn -Dtest.method=TestClass:testMethod
mvn test=TestClass#testMethod
mvn -Dtest=TestClass#testMethod test

Which of the following files defines the project structure and dependencies in a Maven project?
pom.xml
build.xml
project.xml
settings.xml
pom.xml

Which of the following Maven plugins is used for generating a code coverage report in HTML format?
jacoco-maven-plugin
cobertura-maven-plugin
emma-maven-plugin
istanbul-maven-plugin
cobertura-maven-plugin

Which of the following commands is used to clean a Maven project?
mvn clean
mvn clear
mvn -clean
mvn -clear
mvn clean

Which of the following Maven plugins is used for generating a WAR file?
maven-assembly-plugin
maven-shade-plugin
maven-war-plugin
maven-jar-plugin
maven-war-plugin

Which of the following is a valid scope for a Maven dependency that is used for building and testing but not included in the final package?
provided
compile
runtime
test
test

Which of the following commands is used to deploy a Maven project to a remote repository?
mvn deploy
mvn install
mvn release
mvn package
mvn deploy

Which of the following Maven goals is used for generating Javadoc documentation?
javadoc:aggregate
javadoc:javadoc
javadoc:jar
javadoc:report
javadoc:javadoc

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

Which of the following commands is used to create a new Maven project from a specific archetype?
mvn archetype:create
mvn archetype:generate
mvn create:archetype
mvn generate:archetype
mvn archetype:generate

Submit
Retry
{"qz1-970558":"mvn -Dtest=TestClass#testMethod test","qz1-970559":"pom.xml","qz1-970560":"cobertura-maven-plugin","qz1-970561":"mvn clean","qz1-970562":"maven-war-plugin","qz1-970563":"test","qz1-970564":"mvn deploy","qz1-970565":"javadoc:javadoc","qz1-970566":"compile","qz1-970567":"mvn archetype:generate"}

    Leave a Comment


  • captcha text