Search Your Question...!

Maven -Coalescing Pipeline MCQ's

1. How can we compile and generate war file using single command

   View Answer   

   mvn compile war:war



2. Syntax to create maven project.

   View Answer   

   mvn archtype:generate



3. How to generate war file

   View Answer   

   mvn package



4. War files are created for

   View Answer   

   Web and Java



5. What is archetype

   View Answer   

   It is maven project templating toolkit



6. To generate war file using single command,which command in these option is correct

   View Answer   

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



7. What are the types of maven plugins

   View Answer   

   Build and Reporting plugins



8. Maven plugin is

   View Answer   

   Both



9. Surefire plugins are used for

   View Answer   

   for running junit test and report generation



10. Which command is used for skipping the test

   View Answer   

   mvn install -DskipTests



11. Which command is used for checking upgrade check

   View Answer   

   (-Dsurefire.junit4.upgradecheck)



12. Which option stands for Super POM

   View Answer   

   both options



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

   View Answer   

   pre clean,clean,post clean



14. Site life cycle have

   View Answer   

   prsite,site,post site,deploy



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

   View Answer   

   True



16. Syntax to create jar file without compiling the build

   View Answer   

   mvn jar:jar



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

   View Answer   

   mvn clean/mvn clean package



18. Syntax used to build maven site

   View Answer   

   mvn package/mvn SITE package



19. POM describes how to build a project

   View Answer   

   False



20. Syntax used to create war file

   View Answer   

   Dinteractivemode=false



21. To validate maven project we use

   View Answer   

   mvn validate/mvn validate-project



22. Inclusive quantifiers boundary range is defined as

   View Answer   

   [,3.8]



23. List of files generate from maven archetype

   View Answer   

   pom and main



24. Exclusive quantifies boundary range is defined as

   View Answer   

   [3.8,4.6)



25. It is mandatory to have at least one goal associated with a build phase

   View Answer   

   False



26. What is GAV in maven

   View Answer   

   both



27. Dependency Management allows to

   View Answer   

   consolidate and centeralize



28. Surefire reports are in

   View Answer   

   *.XML and *.txt format



29. Syntax to skip the compilation of the test

   View Answer   

   mvn install -Dmaven.test.skip=true



30. Syntax to build maven project offline

   View Answer   

   mvn -o package



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

   View Answer   

   2.0.7,2.0.8



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

   View Answer   

   False



33. Maven is

   View Answer   

   comprehensive and management



34. How to check maven version

   View Answer   

   mnv - version



35. POM stands for __________ in maven

   View Answer   

   project object model



36. What are the minimal coordinate attributes required for pom xlm file

   View Answer   

   groupid;artifactid;version;packaging



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

   View Answer   

   source code, test source and dependency



38. Command to generate Super POM view

   View Answer   

   mvn help:effective pom



39. Local repository could be one on the web server

   View Answer   

   False



40. Maven dependencies are stored in

   View Answer   

   repository lp



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

   View Answer   

   validate, compile, test, package, integrate, verify, install, deploy



42. What are the three builds in maven life cycle

   View Answer   

   default,clean,site



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

   View Answer   

   False



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

   View Answer   

   1,2,3,4



45. Which plugin is needed to compile project

   View Answer   

   maven-compiler-plugin



46. Syntax used for compiling the maven project

   View Answer   

   mvn compile



47. Which plugin is needed to execute project

   View Answer   

   mvn exec:java



48. How to get the maven path

   View Answer   

   whereis mvn,mvn clean(not sure with question)



49. War files are created for  

   View Answer   

   Web



50. Which command is used for generating Unit test reports

   View Answer   

   mvn surefire-report:report



51. What does maven surefire plugins stands for

   View Answer   

   Both



52. Different type of plugins

   View Answer   

   ALL 3



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

   View Answer   

   True



No comments:

Post a Comment