Maven Quiz (Set 13) Maven (Set 13) 1 / 10 Which command is used to compile and package a Maven project without running its tests? mvn compile mvn package mvn install mvn clean package 2 / 10 What is the purpose of the 'repositories' 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. 3 / 10 Which phase of the Maven build lifecycle is responsible for creating a distributable format of the project (e.g., JAR, WAR)? compile package install deploy 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 phase of the Maven build lifecycle is responsible for compiling the project's source code? compile package install test 6 / 10 What is the purpose of the 'build' section in the POM? To define project dependencies. To specify repository URLs. To declare the project's build lifecycle phases and goals. To list the developers and their roles. 7 / 10 Which command is used to create a new Maven project? mvn new mvn create mvn init mvn generate 8 / 10 What is the purpose of the 'dependency' 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. 9 / 10 Which plugin is used to deploy a project's site documentation to a remote server in Maven? maven-site-deploy-plugin maven-docs-plugin maven-deploy-site-plugin maven-site-upload-plugin 10 / 10 What does the 'clean' phase in Maven do? Cleans the build artifacts from the local repository. Cleans the target directory of the project. Cleans the working directory of the project. Cleans the remote repository cache. Your score isThe average score is 0% 0% Restart quiz