Maven Quiz (Set 5) Maven (Set 5) 1 / 10 Which command is used to generate project documentation and reports in Maven? mvn generate-docs mvn create-reports mvn report mvn site 2 / 10 What is the purpose of the 'reporting' section in a Maven POM? To configure repository URLs. To define project dependencies. To declare custom reports and their configurations. To list the developers and their roles. 3 / 10 Which command is used to package the compiled code and resources into a distributable format in Maven? mvn package mvn deploy mvn compile mvn install 4 / 10 What is the purpose of the 'build' section in a Maven POM? To define project dependencies. To specify repository URLs. To declare the project's plugins and their configurations. To list the developers and their roles. 5 / 10 Which directory contains the compiled class files in a Maven project? source output class target 6 / 10 What is the purpose of the 'compile' phase in the Maven build lifecycle? To package the project's source code. To compile and validate the project's code. To generate the project's documentation. To run unit tests. 7 / 10 Which goal is used to generate a site documentation in Maven? mvn docs mvn site mvn generate-site mvn documentation 8 / 10 What is the purpose of the 'execution' element in a Maven plugin configuration? To define the plugin's goals. To specify the plugin's version. To configure the plugin's behavior for a specific phase. To declare the plugin's dependencies. 9 / 10 Which plugin is used to execute unit tests in a Maven project? maven-junit-plugin maven-test-plugin maven-unit-plugin maven-surefire-plugin 10 / 10 What is the purpose of the 'settings.xml' file in Maven? To define the project's dependencies. To specify repository URLs. To configure global settings for Maven. To list the developers and their roles. Your score isThe average score is 0% 0% Restart quiz