Sei sulla pagina 1di 4

S.

no: Questions
1 How can we compile and generate war file using single command
2 Syntax to create maven project.
3 How to generate war file
4 War files are created for
What is archetype
5
To generate war file using single command,which command in these option is correct

7 What are the types of maven plugins


8 Maven plugin is
Surefire plugins are used for
9
10 Which command is used for skipping the test
11 Which command is used for checking upgrade check
12 Which option stands for Super POM
13 Which of the flow is correct for clean life cycle.
14 Site life cycle have
Super POM is a view-only POM for attributes of all dependencies exists across multiple POMs
15
16 Syntax to create jar file without compiling the build
17 Which command is used to remove build data and target directory
18 Syntax used to build maven site
19 POM describes how to build a project
20 Syntax used to create war file
To validate maven project we use
21
22 Inclusive quantifiers boundary range is defined as
23 List of files generate from maven archetype
24 Exclusive quantifies boundary range is defined as
25 It is mandatory to have at least one goal associated with a build phase
26 What is GAV in maven
27 Dependency Management allows to
28 Surefire reports are in
Syntax to skip the compilation of the test
29
30 Syntax to build maven project offline
31 What does dependency range mean, [2.0.7, 2.0.9)
32 Maven build process is composed of one build life cycles but has one or more phases
33 Maven is
34 How to check maven version
35 POM stands for __________ in maven
What are the minimal coordinate attributes required for pom xlm file
36
Resources needed for generating build using pom.xml files are
37
38 Command to generate Super POM view
39 Local repository could be one on the web server
40 Maven dependencies are stored in
Which of the flow is correct for Build life cycle
41
42 What are the three builds in maven life cycle
A build goal is peripheral for a phase when pom binds all goal to the corresponding life cycle
43
44 While creating maven project, we must enter value for
45 Which plugin is needed to compile project
46 Syntax used for compiling the maven project
47 Which plugin is needed to execute project
How to get the maven path
48
49 War files are created for  
50 Which command is used for generating Unit test reports
51 What does maven surefire plugins stands for
52 Different type of plugins
Answers
mvn compile war:war
mvn archtype:generate
mvn package
Web and Java
It is maven project templating
toolkit
mvn archetype:generate
-DgroupId=com.fresco.play
-DartifactId=First-WebApp
-DarchetypeArtifactId=maven-
archetype-webapp
-DinteractiveMode=false

Build and Reporting plugins


Both
for running junit test and report
generation
mvn install -DskipTests
(-Dsurefire.junit4.upgradecheck)
both options
pre clean,clean,post clean
prsite,site,post site,deploy
1

mvn jar:jar
mvn clean/mvn clean package
mvn package/mvn SITE package
0
Dinteractivemode=false
mvn validate/mvn validate-project

[,3.8]
pom and main
[3.8,4.6)
0
both
consolidate and centeralize
*.XML and *.txt format
mvn install -Dmaven.test.skip=true

mvn -o package
2.0.7,2.0.8
0
comprehensive and management
mnv - version
project object model
groupid;artifactid;version;packagin
g
source code, test source and
dependency
mvn help:effective pom
0
repository lp
validate, compile, test, package,
integrate, verify, install, deploy
default,clean,site
0

1,2,3,4
maven-compiler-plugin
mvn compile
exec mvn:java
whereis mvn,mvn clean(not sure
with question)
Web
mvn surefire-report:report
Both
ALL 3

Potrebbero piacerti anche