Maven Flashcards

1
Q
\_\_\_\_\_\_\_\_\_\_\_ represents a current development copy of a dependency.
Select one:
a. Model Number
b. Artifact ID
c. SNAPSHOT 
d. Version
A

c. SNAPSHOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
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

a. groupId, artifactId, version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

a. validate, compile, test, package, integration-test, verify, install, deploy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

b. An artifact that must be included in the build for the application to function properly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

d. To manage project resources, such as documents, developers, and source code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

c. A project structure based on a template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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. A build automation and project management tool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
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
A

c. mvn archetype:generate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
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

a. userhome/.m2/repository

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

b. The local repo is on your computer, whereas the central repo is an online repo of uploaded dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

a. An XML representation of a Maven project held in a file named pom.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

b. Removes the target directory with all the build data before starting the build process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

b. Indexes allow the database application to find data without reading the whole table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
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
A

c. mvn install:install-file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
Which is NOT a Maven build lifecycle?
Select one:
a. Default 
b. Integrate
c. Clean
d. Site
A

b. Integrate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly