Maven Quiz (Set 3) Maven (Set 3) 1 / 10 What is the purpose of the 'repositories' section in a Maven POM? To define the project's dependencies. To specify the plugin versions. To declare the project's repository URLs. To list the developers and their roles. 2 / 10 Which command is used to run the unit tests of a Maven project? mvn tests mvn unit-test mvn run-tests mvn test 3 / 10 In Maven, what is the purpose of the 'SNAPSHOTUpdatePolicy' element in 'settings.xml'? To control how frequently snapshot dependencies are updated. To specify the location of snapshot artifacts. To configure repository mirrors. To set up proxy settings. 4 / 10 Which lifecycle phase generates the site documentation for a Maven project? generate-site generate-docs site generate-report 5 / 10 What is a 'SNAPSHOT' version in Maven? A version that indicates a stable release. A placeholder version for an unreleased project. A version used for testing code changes. A version that indicates an unstable, development release. 6 / 10 Which plugin is used to generate JavaDoc documentation for a Maven project? javadoc-plugin doc-gen-plugin maven-javadoc-plugin java-doclet-plugin 7 / 10 In the 'settings.xml' file, what does the 'localRepository' element specify? The remote repository used for project deployment. The location of the project's source code. The directory where downloaded dependencies are stored. The organization that maintains the Maven repositories. 8 / 10 What is the purpose of the 'site' phase in the Maven build lifecycle? To deploy the built artifact to a remote repository. To generate project documentation and reports. To run integration tests. To compile and package the source code. 9 / 10 Which option is used to skip the execution of Maven's default lifecycle in a command? -skipLifecycle -skipDefaultLifecycle -excludeLifecycle -ignoreLifecycle 10 / 10 What is the purpose of the 'clean' phase in the Maven build lifecycle? To remove all project source files. To delete the 'target' directory and other build artifacts. To run unit tests. To package the project's source code. Your score isThe average score is 0% 0% Restart quiz