Grokking The Java Developer Interview: More Than 200 Questions To Crack The Java, Spring, SpringBoot & Hibernate Interview


Maven Question 184: What is Maven?



Download 7,31 Mb.
Pdf ko'rish
bet86/89
Sana21.04.2022
Hajmi7,31 Mb.
#571320
1   ...   81   82   83   84   85   86   87   88   89
Bog'liq
Grokking-The-Java-Developer-Interview-More-Than-200-Questions-To-Crack-The-Java -Spring -SpringBoot-

Maven
Question 184: What is Maven?
Answer: Maven is a tool that is used for building and managing any
Java based project. It is a powerful project management tool that is
based on POM (Project Object Model). It simplifies the build
process.
Question 185: What is pom.xml?
Answer: POM stands for Project Object Model, it is an xml file which
contains the configuration information related to the project. Maven
uses this file to build the project. We specify all the dependencies
that are needed for a project, the plugins, goals etc. By using
tag, we can specify whether we need to build the
project into a JAR/WAR etc.
Question 186: What is local repo and central repo?
Answer: Local repo : Local repository is a directory on the developer
machine. This repository contains all the dependencies that are
downloaded by Maven. The dependencies are downloaded only
once even if it is used in multiple projects. By default, local repository
location is, C:/Users/USER_NAME/.m2
Central Repo : if any dependency that is required by a project is not
found in local repository then Maven looks in central repository for
this dependency, then Maven downloads this dependency into the
local repository.
We also have one Remote repository , which resides on a server
from which Maven can download the dependencies into the local
repository. It is mainly used in organizations, to share the
dependencies within the organization teams.
Question 187: Where we define our local repo path?


Answer: settings.xml file is used to define a local repository location.
This file is also used to define proxies, remote repository server
locations, plugin groups, profiles etc. By default, it is present in
~/.m2/settings.xml

Download 7,31 Mb.

Do'stlaringiz bilan baham:
1   ...   81   82   83   84   85   86   87   88   89




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish