Maven Quiz (Set 6) Maven (Set 6) 1 / 10 Which goal is used to install a project's artifact to the local repository in Maven? mvn install mvn deploy mvn package mvn compile 2 / 10 What is the purpose of the 'dependencyScopes' section in the 'settings.xml' file? To define global settings for Maven. To configure proxy settings for remote repositories. To declare custom dependency scopes. To specify repository URLs. 3 / 10 Which plugin is used to compile the project's Java source code in Maven? maven-compiler-plugin maven-compiler maven-compile maven-javac-plugin 4 / 10 What is the purpose of the 'modules' section in a Maven parent POM? To specify repository URLs. To define project dependencies. To list the developers and their roles. To declare child modules that inherit the parent's configuration. 5 / 10 Which command is used to create a distributable archive (e.g., JAR, WAR) along with its dependencies in Maven? mvn package mvn deploy mvn install mvn compile 6 / 10 What is the purpose of the 'profiles' section in a Maven POM? To specify repository URLs. To define project dependencies. To declare profiles with customized build configurations. To list the developers and their roles. 7 / 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 8 / 10 What is the purpose of the 'properties' section in a Maven POM? To define global settings for Maven. To specify repository URLs. To declare project-specific properties. To list the developers and their roles. 9 / 10 Which plugin is used to package a project's source code into a JAR file in Maven? maven-compiler-plugin maven-packager-plugin maven-jar-plugin maven-build-plugin 10 / 10 What is the purpose of the 'dependency' element in a Maven POM? To define the project's dependencies. To specify repository URLs. To declare custom reports and their configurations. To list the developers and their roles. Your score isThe average score is 0% 0% Restart quiz