GAV hauv Maven yog dab tsi?
GAV hauv Maven yog dab tsi?

Video: GAV hauv Maven yog dab tsi?

Video: GAV hauv Maven yog dab tsi?
Video: $3000 CHILD TAX CREDIT - $1400 _ TSHUAV CHILD SUPPORT PUAS TAU _ FREE TAX FILING 2024, Kaum ib hlis
Anonim

Maven kev tswj hwm siv cov txiaj ntsig hauv qab no: groupId, artifactId, version, thiab ntim. Cov txheej txheem no feem ntau hu ua a GAV kev tswj hwm, uas yog luv rau Pab Pawg, Artifact, Version coordinate. Cov GAV kev tswj hwm tus qauv yog lub hauv paus rau Maven cov muaj peev xwm tswj hwm kev vam meej.

Hais txog qhov no, GAV yog dab tsi hauv POM XML?

Dab tsi yog GAV in maven . (1) GAV sawv cev rau groupId:artifactId:version. (2) Ob txoj kev xaiv txhais GAV . (3) Tsis muaj ib qho ntawm cov kev xaiv hais. (4) GAV yog siv tsawg kawg coordinate cwj pwm rau mav.

Tom qab ntawd, lo lus nug yog, lo lus txib twg yog siv los tshem tawm cov ntaub ntawv tsim thiab cov phiaj xwm phiaj xwm? mvn huv cov lus txib tshem tawm tus hom phiaj directory nrog tag nrho cov tsim cov ntaub ntawv ua ntej pib lub tsim txheej txheem.

Yog li ntawd, dab tsi yog artifact ID thiab pab pawg ID?

Qhov sib txawv tseem ceeb ntawm groupId thiab artifactId hauv Maven yog qhov ntawd groupId qhia cov id ntawm qhov project pab pawg thaum lub artifactId qhia cov id ntawm qhov project. Nws yuav tsum tau siv cov tsev qiv ntawv thib peb thaum tsim ib qhov project. Nws pab suav nrog tag nrho cov kev vam meej uas xav tau rau qhov project.

Pom lub npe hu ua Maven 1 li cas?

Qhov Project Object Model, yuav luag ib txwm hu ua tus POM rau brevity, yog cov metadata uas Maven yuav tsum ua haujlwm nrog koj qhov project. Nws lub npe yog "project. xml" thiab nws nyob rau hauv lub hauv paus directory ntawm txhua qhov project. Kawm paub yuav ua li cas tsim lub POM rau koj qhov project, thov nyeem txog qhov project descriptor.

Pom zoo: