Cov txheej txheem:

Kuv yuav khiav Maven ntawm Linux li cas?
Kuv yuav khiav Maven ntawm Linux li cas?

Video: Kuv yuav khiav Maven ntawm Linux li cas?

Video: Kuv yuav khiav Maven ntawm Linux li cas?
Video: Poj niam zoo nyob ntawm ncauj paum los yog hauv qhov kawg 2024, Kaum ib hlis
Anonim

Txhawm rau nruab Maven ntawm Linux / Unix:

  1. Mus saib Apache Maven site, download tau Maven binary tar. gz cov ntaub ntawv ntawm qhov tseeb version, thiab ? rho tawm cov ntaub ntawv mus rau lub nplaub tshev uas koj xav siv Maven hauv.
  2. Qhib lub davhlau ya nyob twg thiab khiav cov lus txib hauv qab no los teeb tsa ib puag ncig hloov pauv; Piv txwv li, yog tias apache- mav -3.3. 9- ib. tar.

Tsis tas li ntawd, kuv yuav ua li cas thiaj li khiav maven hais kom ua hauv Linux?

Nruab Apache Maven ntawm Linux

  1. Rub tawm Apache-maven-3.6.
  2. Qhib Terminal thiab hloov cov npe rau /opt folder.
  3. Extract apache-maven archive rau hauv cov npe xaiv.
  4. Kho kom raug cov ntaub ntawv /etc/environment thiab ntxiv ib puag ncig hloov pauv hauv qab no:
  5. Hloov kho mvn hais kom ua:

Ib yam li ntawd, kuv yuav ua li cas khiav Maven qhov project hauv Terminal? 3.1. Maven muab cov cuab yeej hais kom ua kab. Tsim ib tug Maven qhov project ntawm kab hais kom ua, khiav tus mvn hais kom ua los ntawm kab hais kom ua. Cov lus txib yuav tsum raug tua nyob rau hauv phau ntawv teev npe uas muaj cov ntaub ntawv pom zoo. Koj yuav tsum muab cov mvn txib nrog lub neej voj voog theem lossis lub hom phiaj rau ua.

Yog li ntawd, kuv yuav khiav maven ntawm Ubuntu li cas?

Yuav ua li cas rau nruab Apache Maven ntawm Ubuntu 16.04

  1. Kauj ruam 1: Hloov kho koj lub server. Ua ntej, hloov kho koj lub cev mus rau qhov tseeb ruaj khov version los ntawm kev khiav cov lus txib hauv qab no: sudo apt-tau hloov tshiab -y sudo apt-tau upgrade -y.
  2. Kauj ruam 2: Nruab Java.
  3. Kauj ruam 3: Nruab Apache Maven.
  4. Kauj ruam 4: Teeb ib puag ncig hloov pauv.
  5. Kauj Ruam 5: Tshawb xyuas kev teeb tsa.

Kuv yuav teeb Maven li cas?

Maven - Kev teeb tsa ib puag ncig

  1. Kauj ruam 1 - Txheeb xyuas Java Installation ntawm koj lub tshuab.
  2. Kauj ruam 2 - Teeb JAVA Ib puag ncig.
  3. Kauj ruam 3 - Download Maven Archive.
  4. Kauj ruam 4 - Extract Maven Archive.
  5. Kauj ruam 5 - Teeb Maven Ib puag ncig hloov pauv.
  6. Kauj Ruam 6 - Ntxiv Maven bin Cov Ntawv Qhia Qhov Chaw rau Txoj Kev.
  7. Kauj Ruam 7 - Txheeb xyuas Maven Installation.

Pom zoo: