Lub ntim ntim hauv Maven yog dab tsi?
Lub ntim ntim hauv Maven yog dab tsi?

Video: Lub ntim ntim hauv Maven yog dab tsi?

Video: Lub ntim ntim hauv Maven yog dab tsi?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Plaub Hlis Ntuj
Anonim

Cov ntim hom yog teev nyob rau hauv pom. xml piav qhia los ntawm < ntim > element, feem ntau tom qab nws Maven ua haujlwm. Cov default ntim hom yog lub thawv. Lub hom phiaj plugin uas raug tua los ntawm ua ntej nyob rau hauv txhua theem ntawm lub neej voj voog nyob ntawm qhov ntim hom ntawm qhov project uas peb yuav tsim.

Hauv qhov no, dab tsi yog ntim hauv Maven?

Qhov tseem ceeb tshaj plaws ntawm a Maven qhov project yog nws ntim hom, uas qhia txog hom artifact qhov project tsim. Muaj ntau yam built-in Maven ntim hom (piv txwv li, thawv, tsov rog, thiab pob ntseg). Ib qhov project ntim hom qhia cov hom phiaj plugin uas tau ua thaum lub sijhawm txhua Maven tsim theem.

Tsis tas li ntawd, ntim hom Pom yog dab tsi? “ pom ” ntim tsis muaj dab tsi tab sis lub thawv, uas muaj lwm cov pob khoom / modules zoo li lub thawv, kev ua tsov ua rog, thiab pob ntseg. yog tias koj ua ib qho kev ua haujlwm ntawm cov pob khoom sab nrauv / thawv xws li mvn huv compile nruab. ces puab tej pob khoom/modules kuj tau huv compile nruab.

Yog li ntawd, lub hom phiaj maven yog dab tsi?

Lub hom phiaj yog ib chav haujlwm ntawm kev ua haujlwm uas ua haujlwm tiag tiag. Piv txwv li lub compile lub hom phiaj (runs as mvn compiler: compile) uas compiles Java qhov chaw. Tag nrho hom phiaj yog muab los ntawm plugins, los ntawm lub neej ntawd plugins lossis los ntawm cov neeg siv cov plugins (configured hauv pom ntaub ntawv). Ib theem nrog xoom plugin hom phiaj tsis muaj dab tsi.

Maven txheeb xyuas dab tsi?

2 Teb. mvn txheeb xyuas - raws li tau hais ua ntej - ua ib qho kev xeem sib xyaw ua ke uas mav pom hauv qhov project. mvn nruab implicitly khiav mvn txheeb xyuas thiab tom qab ntawd luam cov khoom qub uas tau tshwm sim rau hauv koj lub zos mav repository uas koj feem ntau tuaj yeem pom hauv C: Usersusername. m2 epository yog tias koj siv windows.

Pom zoo: