Maven - Coalescing Pipeline MCQs Solution | TCS Fresco Play | Fresco Play | MNC Answers
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
1. How can we compile and generate war file using single command
mvn compile war:war
2. Syntax to create maven project.
mvn archtype:generate
3. How to generate war file
mvn package
4. War files are created for
Web and Java
5. What is archetype
It is maven project templating toolkit
6. 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
7. What are the types of maven plugins
Build and Reporting plugins
8. Maven plugin is
Both
9. Surefire plugins are used for
for running junit test and report generation
10. Which command is used for skipping the test
mvn install -DskipTests
11. Which command is used for checking upgrade check
(-Dsurefire.junit4.upgradecheck)
12. Which option stands for Super POM
both options
13. Which of the flow is correct for clean life cycle.
pre clean,clean,post clean
14. Site life cycle have
prsite,site,post site,deploy
15. Super POM is a view-only POM for attributes of all dependencies exists across multiple POMs
TRUE
16. Syntax to create jar file without compiling the build
mvn jar:jar
17. Which command is used to remove build data and target directory
mvn clean/mvn clean package
18. Syntax used to build maven site
mvn package/mvn SITE package
19. POM describes how to build a project
FALSE
20. Syntax used to create war file
Dinteractivemode=false
21. To validate maven project we use
mvn validate/mvn validate-project
22. Inclusive quantifiers boundary range is defined as
[,3.8]
23. List of files generate from maven archetype
pom and main
24. Exclusive quantifies boundary range is defined as
[3.8,4.6)
25. It is mandatory to have at least one goal associated with a build phase
FALSE
26. What is GAV in maven
both
27. Dependency Management allows to
consolidate and centeralize
28. Surefire reports are in
*.XML and *.txt format
29. Syntax to skip the compilation of the test
mvn install -Dmaven.test.skip=true
30. Syntax to build maven project offline
mvn -o package
31. What does dependency range mean, [2.0.7, 2.0.9)
2.0.7,2.0.8
32. Maven build process is composed of one build life cycles but has one or more phases
FALSE
33. Maven is
comprehensive and management
34. How to check maven version
mnv - version
35. POM stands for __________ in maven
project object model
36. What are the minimal coordinate attributes required for pom xlm file
groupid;artifactid;version;packaging
37. Resources needed for generating build using pom.xml files are
source code, test source and dependency
38. Command to generate Super POM view
mvn help:effective pom
39. Local repository could be one on the web server
FALSE
40. Maven dependencies are stored in
repository lp
41. Which of the flow is correct for Build life cycle
validate, compile, test, package, integrate, verify, install, deploy
42. What are the three builds in maven life cycle
default,clean,site
43. A build goal is peripheral for a phase when pom binds all goal to the corresponding life cycle
FALSE
44. While creating maven project, we must enter value for
1,2,3,4
45. Which plugin is needed to compile project
maven-compiler-plugin
46. Syntax used for compiling the maven project
mvn compile
47. Which plugin is needed to execute project
mvn exec:java
48. How to get the maven path
whereis mvn,mvn clean(not sure with question)
49. War files are created for
Web
50. Which command is used for generating Unit test reports
mvn surefire-report:report
51. What does maven surefire plugins stands for
Both
52. Different type of plugins
ALL 3
2 comments