PDF Google Drive Downloader v1.1


Báo lỗi sự cố

Nội dung text Apache Maven.pdf

1. Identify the purpose of clean plugin of Maven from the following Copy the resources(.properties/.xml/.yml) to the target directory that will be a part of the final build Clean the previous build outputs of the project Deletes the previous build (jar/war/ear) of the project that is available in the local repository, if any ➔ only 1 ➔ Only 2 ➔ Both 1 and 2 ➔ All 1, 2 and 3 2. Maven's dependency management involves 1. Consulting POM for knowing the required set of dependencies 2. Locating the required artifacts/dependencies in a remote/local repository 3. Resolving transitive dependencies ➔ Only 1 and 2 ➔ Only 2 and 3 ➔ Only 2 ➔ All 1, 2 and 3 3. What is the location of the configuration file which contains the list of dependencies that a Maven project requires? 1. Inside src folder 2. Parallel to src folder 3. Anywhere in the file system ➔ Only 1 ➔ Only 2 ➔ Only 3 ➔ Either 1 or 2 4. Ann works on a Maven project that requires Spring core 5.0.1.jar which is provided by org.springframework. Which among the following entries of pom.xml would make this entry available for the project? ➔ org.springframework spring- core 5.0.1 Pivotal org.springframework/licenses/L.txt repo Simple Project License spring-core-plugin
spring-core org.springframework 5.0.1 5. Jerome is in the process of adding dependencies in pom.xml of BookMovie application. One of those dependencies is listed here for your observation. commons-logging commons-logging 1.1.1 Identify the correct option based on your observation. ➔ The dependency entry is ambiguous as it does not include element ➔ The dependency entry is unambiguous and the dependency could even be propagated to the dependent projects ➔ The dependency entry is unambiguous and the dependency will be made available only till compile phase ➔ The dependency entry is unambiguous and the dependency will be made available only till compiling the test-cases 6. Identify the correct sequence in which the life-cycle phases of Maven will get triggered. ➔ validate - compile - package - verify - install – deploy ➔ compile - validate - package - install - deploy – verify ➔ validate - compile - verify - package - install – deploy ➔ verify - compile - validate - package - install – deploy 7. Ann wants to skip the execution of test-cases while pushing her artifact to the local repository. What would you suggest Ann? 1. Execute mvn install -Dmaven.test.skip=true command 2. Update the element of Maven's surefire-plugin configuration to true in the pom.xml of the project ➔ only 1 ➔ Only 2 ➔ Either 1 or 2 ➔ Neither 1 nor 2 8. Given below are certain statements regarding Maven. It depends on its plugins to execute the required goals It retrieves the project dependencies and plugins from remote repositories always
It retrieves the project dependencies and plugins even from the local repository Select the correct option from below based on above statements: ➔ Only 1 ➔ Only 2 ➔ 1 and 2 ➔ 1 and 3 9. Ann prefers using assembly plugin of Maven in her project for the following reasons Assemble all the test cases of the project in a centralized place Assemble all the dependencies of the project in a centralized place Produce a distribution unit of the project that includes dependencies, site documentation and various other files Identify the option that goes wrong ➔ Only 1 ➔ Only 2 ➔ Only 3 ➔ Both 1 and 2 10. Identify which among the following is being accomplished by the verifier plugin of Maven. 1. Running integration tests and ensuring the existence of certain criteria 2. Installing the build into the local repository ➔ Only 1 ➔ Only 2 ➔ Both 1 and 2 ➔ Neither 1 nor 2 11. Following is the conversation that Fedrick had with his team members regarding POM It describes the type of the project and provides the details about project name, customizations about the build for the project It is the declarative descriptor of the project It is the place where the entries regarding dependencies are found Identify the statements of Fedrick that are correct. ➔ Only 1
➔ Only 2 ➔ Both 1 and 2 ➔ Both 1 and 3 ➔ All 1, 2 and 3 12. Himanshu is working on the Maven version of InfyCart application. Himanshu wants to invoke a particular phase during the build process. What would you suggest Himanshu? 1. Invoke the phases sequentially 2. Invoke the first phase before coming to the specific phase 3. Invoke the last phase after invoking the specific phase 4. Invoke only the phase that is required as Maven will ensure triggering all other previous phases before coming to it ➔ Only 1 ➔ Only 2 ➔ Only 3 ➔ Only 4 13. Nancy is working on a Maven project that demands JUnit-4.12.jar as a dependency. She finished adding the dependency entry for JUnit in the pom.xml as follows junit junit test Identify the correct option based on your observation. ➔ Ambiguous entry as the element is missing in section ➔ This fetches the latest RELEASE version of JUnit from the remote/central repository ➔ This fetches the latest SNAPSHOT version of JUnit from the remote/central repository ➔ Resolves to the version of JUnit that is available in the local repository (if any) 14. Which among the following are to be supplied mandatorily while creating a Maven project? (Choose any 2) ➔ groupId ➔ version ➔ artifactId ➔ packaging mode
15. Ann and Delphin had a conversation over the dependency managemnt feature of Maven and their view on the same is presented below. Supports various dependency scopes Maven does not support Transitive dependencies Maven provides support to prohibit transitive dependencies. Identify the view of Ann and Delphin that goes wrong. ➔ Only 1 ➔ Only 2 ➔ Both 1 and 2 ➔ All 1, 2 and 3 16. Shan works on a Maven based web application. He builds his module incrementally and wants to check the effects of his code continuously. And, this demands deploying the application for every change that he does. What will be your input to him that would save his effort and time? Configure Tomcat container in the IDE where the application is being developed and deploy the application manually Configure Jetty container in the IDE where the application is being developed and deploy the application manually Use Maven's Tomcat plugin to autodeploy the application ➔ Only 1 ➔ Only 2 ➔ Only 3 ➔ Either 1 or 2 17. Below is the pom.xml of Infycart application for your observation : junit junit 4.12 test log4j log4j 1.2.17

Tài liệu liên quan

x
Báo cáo lỗi download
Nội dung báo cáo



Chất lượng file Download bị lỗi:
Họ tên:
Email:
Bình luận
Trong quá trình tải gặp lỗi, sự cố,.. hoặc có thắc mắc gì vui lòng để lại bình luận dưới đây. Xin cảm ơn.