Maven Quiz (Set 4) Maven (Set 4) 1 / 10 Which goal is used to compile the project's source code in Maven? mvn compile mvn build mvn package mvn generate-sources 2 / 10 What does the 'groupId' attribute in a Maven dependency refer to? The project's name. The organization or group that created the dependency. The version of the dependency. The artifact ID of the dependency. 3 / 10 Which lifecycle phase is responsible for running integration tests? test integration-test verify package 4 / 10 What is the default packaging type for a Maven project? jar war pom xml 5 / 10 Which command is used to create a new Maven project from an existing archetype? mvn init mvn create mvn setup mvn archetype:generate 6 / 10 What is the purpose of the 'repositories' section in the 'settings.xml' file? To configure proxy settings for remote repositories. To define global properties for Maven builds. To list the developers and their roles. To specify repository mirrors and URLs. 7 / 10 Which lifecycle phase is responsible for deploying the built artifact to a remote repository? deploy release package install 8 / 10 What is the purpose of the 'test' scope for a Maven dependency? To specify that the dependency is used for unit tests. To indicate that the dependency is a required component. To define that the dependency is needed during runtime. To mark the dependency as optional. 9 / 10 Which command is used to generate an initial Maven project structure? mvn init mvn create mvn setup mvn archetype:generate 10 / 10 What does the 'version' attribute specify in a Maven dependency? The project's name. The project's version. The version of the dependency artifact. The organization or group that created the dependency. Your score isThe average score is 0% 0% Restart quiz