Maven - Coalescing Pipeline

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

Maven -Coalescing Pipeline

1.Maven build process is composed of one build life cycles but has one or more
phases.
->Comprehension and Management tool.

2.POM stands for __________ in maven.


->Project Object Model.

3.How to check maven version


->mvn -version

4.Maven is _______________
->Comprehension and Management tool.

5.Command to generate Super POM view


->mvn help:effective-pom

6.Which option stands true for Super POM


->Both the options mentioned

7.What are the minimal coordinate attributes required for pom xlm file
->groupId:artifactId:version

8.What was POM named in maven 1


->project.xml

9.Resources needed for generating build using pom.xml files are


->Source code location, test source location and dependency details

10.Exclusive quantifies boundary range is defined as


->[3.8,4.6)

11.Maven dependencies are stored in ____________


->repository

12.Maven search for dependency in ___________________


->search in all three repositories

13.What does dependency range mean, [2.0.7, 2.0.9)


->2.0.7,2.0.8

14.local repository could be one on the web server.


->F

15.Inclusive quantifiers boundary range is defined as


->[, 3.8]

16.Which of the flow is correct for Build life cycle


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

17.A build goal is peripheral for a phase when pom binds all goal to the
corresponding life cycle
->F

18.Which of the flow is correct for clean life cycle.


->pre clean , clean ,post clean
19.What are the three builds in maven life cycle
->default,clean,site

20.Syntax used for compiling the maven project.


->mvn compile

21.How to get the maven path


->whereis mvn

22.While creating maven project, we must enter value for

i. groupId
ii. artifactId
iii. package
iv. version
->I, ii, iii and iv

23.Which plugin is needed to compile project.


->mvn-compile-plugin

24.How can we compile and generate war file using single command
->mvn compile war:war

25.How to generate war file


->mvn package

26.What is archetype
->It is maven project templating toolkit

27.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

28.War files are created for ____________


->Web Application

29.Syntax to create maven project.


->mvn archetype:generate

30.Surefire plugins are used for


->for running Junit test and report generation

31.Which command is used for checking upgrade check


->-Dsurefire.junit4.upgradecheck

32.Maven plugin is
->Both the options mentioned

33.What are the types of maven plugins


->Build and Reporting Plugins.

34.Which command is used for generating Unit test reports


->mvn surefire-report:report

35.Which command is used for skipping the test


->mvn install -DskipTests
36.Super POM is a view-only POM for attributes of all dependencies exists across
multiple POMs
->F

37.Surefire reports are in


->*.xml format

38.To validate maven project we use


->mvn validate-project

39.It is mandatory to have at least one goal associated with a build phase
->T

40.Dependency Management allows to


->consolidate and centralize the management of dependency versions

41.Syntax used to build maven site


->mvn package site.

42.Site life cycle have


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

43.Syntax used to create war file


->mvn archetype:generate -DgroupId=com.fresco.play -DartifactId=First-WebApp
-DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=true

44.Which of the flow is correct for clean life cycle.


->pre clean , clean ,post clean

45.Site life cycle have


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

1. Syntax used to build maven site


->mvn site package.(W)

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


->mvn clean package.(W)

3. Surefire reports are in


->*.xml format(W)

4.4. Super POM is a view-only POM for attributes of all dependencies exists across
multiple POMs
->T(c)

You might also like