Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

Maven build process is composed of one build life cycles but has one or more

phases.
False

How to check maven version


mvn -version

POM stands for __________ in maven.


Project Object Model.

Maven is _______________
Comprehension and Management tool.

What are the minimal coordinate attributes required for pom xlm file
groupId:artifactId:version

Which option stands true for Super POM


Both the options mentioned

Command to generate Super POM view


mvn help:effective-pom

Maven dependencies are stored in ____________


repository

Inclusive quantifiers boundary range is defined as


[, 3.8]

Maven search for dependency in ___________________


search in all three repositories

Local repository could be one on the web server.


False

Which of the flow is correct for clean life cycle.


pre clean , clean ,post clean

What are the three builds in maven life cycle


default,clean,site

A build goal is peripheral for a phase when pom binds all goal to the corresponding
life cycle
False

Which of the flow is correct for Build life cycle


validate->compile->Test->Package->integrate->verify->install->deploy

Which plugin is needed to execute project.


mvn-exec-plugin wrong

How to get the maven path


whereis mvn

List of files generate from maven archetype


pom file, main and test folder

Which plugin is needed to compile project.


mvn-compile-plugin
While creating maven project, we must enter value for
I, ii, iii and iv

To generate war file using single command,which command in these option is correct
mvn archetype:generate -DgroupId=com.fresco.play -DartifactId=First-WebApp
-DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

Syntax to create maven project.


mvn archetype:generate

How can we compile and generate war file using single command
mvn compile war:war

How to generate war file


mvn clean(Wrong)

War files are created for ____________


Web Application

What is archetype
It is maven project templating toolkit

Which command is used for generating Unit test reports


mvn surefire-report:report

Maven plugin is
Both the options mentioned

Which command is used for checking upgrade check


-Dsurefire.junit4.upgradecheck

What are the types of maven plugins


Build and Reporting Plugins.

Surefire plugins are used for


for running Junit test and report generation

To validate maven project we use


mvn validate

Syntax used to build maven site


mvn site

Super POM is a view-only POM for attributes of all dependencies exists across
multiple POMs
True

Exclusive quantifies boundary range is defined as


[3.8,4.6)

Maven plugin is
Both the options mentioned

Dependency Management allows to


consolidate and centralize the management of dependency versions
What does maven surefire plugins stands for?
Both of the options are correct about maven surefire plugins.

Syntax used to skip the test using terminal


mvn install -DskipTests

Which command is used to remove build data and target directory .


mvn clean

Different type of plugins


Build and Reporting Plugins.

What does dependency range mean, [2.0.7, 2.0.9)


2.0.7,2.0.8

Syntax to skip the compilation of the test


mvn install -Dmaven.test.skip=true

Which option stands for Super POM


Both the options mentioned

Surefire reports are in


*.txt and *.xml Format.

Syntax to create jar file without compiling the build


mvn jar:jar

Site life cycle have


pre-site->site->post-site->deploy

You might also like