Maven Flashcards
\_\_\_\_\_\_\_\_\_\_\_ represents a current development copy of a dependency. Select one: a. Model Number b. Artifact ID c. SNAPSHOT d. Version
c. SNAPSHOT
What are the elements of a project's coordinates? Select one: a. groupId, artifactId, version b. company, project, versionNumber c. project, version d. group, artifact, version
a. groupId, artifactId, version
In what order are the phases of the default lifecycle executed?
Select one:
a. validate, compile, test, package, integration-test, verify, install, deploy
b. validate, compile, package, test, integration-test, verify, deploy, install
c. validate, test, compile, package, integration-test, verify, install, deploy
d. validate, compile, test, package, integration-test, deploy, install, verify
a. validate, compile, test, package, integration-test, verify, install, deploy
What is a dependency?
Select one:
a. Another name for the POM file
b. An artifact that must be included in the build for the application to function properly
c. A collection of unit tests that must pass before the build is allowed to complete
d. A dependent or subordinate thing, especially a country or province controlled by another
b. An artifact that must be included in the build for the application to function properly
What is a Maven goal?
Select one:
a. A directory structure template for building Maven applications
b. A task bound to zero or more build phases which contributes to the building and managing of a project
c. A project dependency that is resolved during compilation
d. To manage project resources, such as documents, developers, and source code
d. To manage project resources, such as documents, developers, and source code
What is an archetype?
Select one:
a. None of the above
b. A JAR file required to build the project
c. A project structure based on a template
d. A task bound to zero or more build phases which contributes to the building and managing of a project
c. A project structure based on a template
What is Maven?
Select one:
a. A build automation and project management tool
b. A database connectivity framework for Java
c. None of the above
d. A unit testing framework
a. A build automation and project management tool
What is the command to create a new project based on an archetype? Select one: a. mvn archetype:new b. mvn archetype:quickstart c. mvn archetype:generate d. mvn archetype:create
c. mvn archetype:generate
What is the default location of your local repository? Select one: a. userhome/.m2/repository b. userhome/m2/repository c. All of the above d. C:/.m2/repository
a. userhome/.m2/repository
What is the difference between the local and central repositories?
Select one:
a. The central repo is on your computer, whereas the local repo is an online repo of uploaded dependencies
b. The local repo is on your computer, whereas the central repo is an online repo of uploaded dependencies
b. The local repo is on your computer, whereas the central repo is an online repo of uploaded dependencies
What is the POM?
Select one:
a. An XML representation of a Maven project held in a file named pom.xml
b. A Maven project template, including source and test directories
c. A representation of a Maven project held in a file named pom.txt
d. All of the above
a. An XML representation of a Maven project held in a file named pom.xml
What would the command mvn clean do?
Select one:
a. Removes the source directory with all the build data before starting the build process
b. Removes the target directory with all the build data before starting the build process
c. None of the above
d. Both of the above
b. Removes the target directory with all the build data before starting the build process
What’s an index?
Select one:
a. Indexes speed up the truncate process
b. Indexes allow the database application to find data without reading the whole table
c. Indexes allow a database to run INSERT statements faster
d. Index is another term for primary key
b. Indexes allow the database application to find data without reading the whole table
Which command is used to install a JAR file to your local repository? Select one: a. mvn clean b. mvn install:install-jar c. mvn install:install-file d. mvn install
c. mvn install:install-file
Which is NOT a Maven build lifecycle? Select one: a. Default b. Integrate c. Clean d. Site
b. Integrate