Thanks for the patience pls share with friends
Download 1.91 Mb. Pdf ko'rish
|
devops-1
Maven is a build automation tool used primarily for Java projects. Maven addresses two
aspects of building software: First: It describes how software is built Second: It describes its dependencies. Unlike earlier tools like Apache Ant, it uses conventions for the build procedure, and only exceptions need to be written down. An XML file describes the software project being built, its dependencies on other external modules and components, the build order, directories, and required plug-ins. It comes with pre-defined targets for performing certain well-defined tasks such as compilation of code and its packaging. Maven dynamically downloads Java libraries and Maven plug-ins from one or more repositories such as the Maven 2 Central Repository, and stores them in a local cache. This local cache of downloaded artifacts can also be updated with artifacts created by local projects. Public repositories can also be updated. 20/71 Question: What Are Benefits Of Maven? One of the biggest benefit of Maven is that its design regards all projects as having a certain structure and a set of supported task work-flows. Maven has quick project setup, no complicated build.xml files, just a POM and go All developers in a project use the same jar dependencies due to centralized POM. In Maven getting a number of reports and metrics for a project "for free" It reduces the size of source distributions, because jars can be pulled from a central location Maven lets developers get your package dependencies easily With Maven there is no need to add jar files manually to the class path Question: What Are Build Life cycles In Maven? Build lifecycle is a list of named phases that can be used to give order to goal execution. One of Maven's standard life cycles is the default lifecycle, which includes the following phases, in this order 1 validate 2 generate-sources 3 process-sources 4 generate-resources 5 process-resources 6 compile 7 process-test-sources 8 process-test-resources 9 test-compile 10 test 11 package 12 install 13 deploy Question: What Is Meant By Build Tool? Build tools are programs that automate the creation of executable applications from source code. Building incorporates compiling, linking and packaging the code into a usable or executable form. In small projects, developers will often manually invoke the build process. This is not practical for larger projects. Where it is very hard to keep track of what needs to be built, in what sequence and what dependencies there are in the building process. Using an automation tool like Maven, Gradle or ANT allows the build process to be more consistent. 21/71 Question: What Is Dependency Management Mechanism In Gradle? Maven's dependency-handling mechanism is organized around a coordinate system identifying individual artifacts such as software libraries or modules. For example if a project needs Hibernate library. It has to simply declare Hibernate's project coordinates in its POM. Maven will automatically download the dependency and the dependencies that Hibernate itself needs and store them in the user's local repository. Maven 2 Central Repository is used by default to search for libraries, but developers can configure the custom repositories to be used (e.g., company-private repositories) within the POM. Question: What Is Central Repository Search Engine? The Central Repository Search Engine, can be used to find out coordinates for different open-source libraries and frameworks. Question: What are Plugins In Maven? Most of Maven's functionality is in plugins. A plugin provides a set of goals that can be executed using the following syntax: mvn [plugin-name]:[goal-name] For example, a Java project can be compiled with the compiler-plugin's compile-goal by running mvn compiler:compile . There are Maven plugins for building, testing, source control management, running a web server, generating Eclipse project files, and much more. Plugins are introduced and configured in a -section of a pom.xml file. Some basic plugins are included in every project by default, and they have sensible default settings. Questions: What Is Difference Between Maven And ANT? Download 1.91 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling