Maven Flashcards

1
Q

What is Maven?

A

Maven is a powerful project management tool that is based on POM (project object model). It is used for project builds, dependency and documentation

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

What is the default Maven build lifecycle?

A

validate - Validate the project is correct and all necessary information is available

compile - Compile the source code of the project

test - Test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged and deployed

package - Take the compiled code and package it in its distributable format, such as JAR

verify - Run any checks on results of integration tests to ensure quality criteria are met

install - Install the package into the local repository, for use as a dependency in other projects locally

deploy - Done in the build environment, copies the final package to the remote repository for sharing with other developers and projects

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

Where/When does Maven retrieve dependencies from? Where are they stored locally?

A

Maven automatically downloads all the dependency jars into the local repository.

Defined dependencies will be loaded from remote repositories into gradle’s local repository folder.

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

What is the POM and what is the pom.xml file?

A

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. Such as dependencies, plugins, and directories

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

What defines Maven project coordinates?

A

Maven coordinates define a set of identifiers which can be used to uniquely identify a project, a dependency, or a plugin in a Maven POM.

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