Maven Quiz
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 29% Most missed: “Which goal would you use with the Dependency plugin to determine which included …”

Maven MCQs For LinkedIn Skill Assessments.

Maven is a build automation tool used primarily for Java projects.

Maven Quiz
Time left 00:00
25 Questions

1. How do you check for unused dependencies in your project?
2. These are two general uses of plugins. The first is build and the second is \_
3. When defining a dependency that is included with the runtime container, what scope do you use in the pom.xml?
4. What is the main purpose of the install phase?
5. What does the 'mvn -version' command do?
6. For what purpose can plugins use the validate phase in the default lifecycle?
7. Many organizations set up local mirrors to the Maven central repository. In order to leverage your company's Maven repository as a proxy for the Maven central repository, which element should you put into the settings.xml file?
8. What element in the pom.xml file allows you to provide values that can be reused in other elements of the pom.xml?
9. If you wish to build and package your artifact using the Maven package goal but don't want to execute the unit tests, which environment variable and value would you use?
10. When two dependencies of your Maven project introduce the same transitive dependency with different versions, which one(s) will be included in the dependency list for your project?
11. How do you run a single unit test in Maven?
12. The goal that is executed to generate and deploy a documentation website is \_.
13. What does the following command do?
> mvn archetype:generate \
-DgroupID=sample-maven-project \
-DartifactID=com.palmer.bethan.sample \
-Dversion=1.0.0 \
-DinteractiveMode=false
14. When building a Maven Archetype, where do you put your prototype files?
15. When building a web application with a WAR type project, which project directory should contain the style sheet, JavaScript, and other static file?
16. What is the default scope for Maven dependencies?
17. What is the default packaging type for a Maven project build artifact?
18. If you want to utilitze a locally developed JAR file in another project and that JAR file has not been deployed to either the Maven central repository or your own locally sourced mirror repository, what Maven goal do you need to execute on the locally developed JAR project?
19. A compile-time dependency of a dependency for your project is often called a _____ dependency
20. Why might you not want to include groupId and version elements in child POM files?
21. What environment variable can you alter to increase the memory Maven uses?
22. Which structure in a settings.xml file allows for flexing properties based on some value for the runtime of Maven?
23. The settings.xml file that provides the user-specific settings for Maven is contained in which directory by default?
24. When performing a build, which Maven plugin will allow you to set the specific version of the artifact to be built without manual modifying the pom.xml file?
25. What does the mvn clean command do?

⚡ Recently practiced quizzes in this topic
Live quiz activity