Maven Quiz (Set 12) Maven (Set 12) 1 / 10 Which goal is used to run a project's unit tests in Maven? mvn unit-test mvn test mvn run-tests mvn execute-tests 2 / 10 What is the purpose of the 'profiles' section in the POM? To specify repository URLs. To define project dependencies. To declare profiles with customized build configurations. To list the developers and their roles. 3 / 10 Which goal is used to compile the project's Java source code in Maven? mvn compile mvn build mvn package mvn generate-sources 4 / 10 What is the purpose of the 'dependencyManagement' section in the POM? To define the project's dependencies. To centralize dependency versions for child modules. To specify repository URLs. To declare project-specific properties. 5 / 10 Which goal is used to generate a site documentation in Maven? mvn docs mvn site mvn generate-site mvn documentation 6 / 10 What is the purpose of the 'dependencies' section in the POM? To define project dependencies. To specify repository URLs. To declare custom reports and their configurations. To list the developers and their roles. 7 / 10 Which plugin is used to generate a project's Javadoc documentation in Maven? maven-javadoc-plugin maven-doc-plugin maven-generate-javadoc-plugin maven-javadoc-gen-plugin 8 / 10 What is the purpose of the 'modules' section in the parent POM? To specify repository URLs. To define project dependencies. To declare profiles with customized build configurations. To list child modules that inherit the parent's configuration. 9 / 10 Which plugin is used to execute site lifecycle documentation goals in Maven? maven-site-plugin maven-docs-plugin maven-generate-site-plugin maven-site-lifecycle-plugin 10 / 10 What is the purpose of the 'testCompile' scope for a Maven dependency? To indicate that the dependency is a required component. To define that the dependency is needed during runtime. To mark the dependency as optional. To specify that the dependency is used for compiling test sources. Your score isThe average score is 0% 0% Restart quiz