Thaum koj khiav Maven tsim, ces Maven cia li rub tawm tag nrho cov jars nyob rau hauv lub zos repository. Nws pab kom tsis txhob muaj cov ntaub ntawv xa mus rau qhov kev vam khom khaws cia ntawm lub tshuab tej thaj chaw deb txhua zaus thaum tsim qhov project. Maven lub chaw cia khoom hauv zos los ntawm lub neej ntawd tau tsim los ntawm Maven hauv %USER_HOME% directory.
Puas Maven rub tawm qhov kev vam khom ntawm kev vam meej?
Maven siv HTTP txhawm rau rub nws cov kev vam khom nrog rau kev vam khom ntawm Maven qhov project (xws li Camel). Yog tias koj khiav Maven thiab nws tsis rub tawm koj qhov kev cia siab nws yuav tshwm sim los ntawm koj lub zos firewall & HTTP proxy configurations.
Kuv yuav rub tawm Maven li cas?
Yuav ua li cas siv maven tsuas yog luam tawm kev vam khom
- 1 - Ua ntej kom paub tseeb tias koj tau teeb tsa maven. Los ntawm hom console: mvn -version.
- 2 - Tsim pom. xml cov ntaub ntawv nyob rau hauv niam txiv nplaub tshev rau lub nplaub tshev koj xav mus download tau tag nrho cov tsev qiv ntawv. …
- 3 - Ua cov lus txib kom rub tawm cov tsev qiv ntawv. …
- 5 - Kho koj lub npe (Yog xav tau)
Mvn pob puas rub tawm kev vam khom?
mvn nruab (lossis mvn pob) yuav ua haujlwm ib txwm. Koj tuaj yeem siv mvn muab tso ua ke los rub tawm cov sijhawm sib koom ua ke lossis mvn xeem rau kev suav sau sijhawm thiab ntsuas kev vam meej tab sis kuv nyiam qee yam uas ib txwm ua haujlwm. Ua tsaug, kuv kuj pom tias ntxiv rau pom hauv STS yuav cia li rub tawm rau koj.
Kuv yuav yuam Maven li cas los hloov kho kev vam khom?
nias alt+F5, qhov rais rau Hloov Kho Maven Project yuav tshwm sim. Kos - Force Hloov tshiab ntawm Snapshots / tso tawm thiab nyem OK.