Cov txheej txheem:

Maven nyob qhov twg ntawm Ubuntu?
Maven nyob qhov twg ntawm Ubuntu?

Video: Maven nyob qhov twg ntawm Ubuntu?

Video: Maven nyob qhov twg ntawm Ubuntu?
Video: Poj niam zoo nyob ntawm ncauj paum los yog hauv qhov kawg 2024, Kaum ib hlis
Anonim

Raws li tau hais hauv cov qauv saum toj no, koj yuav tsum tau nruab Qhib JDK pob kom paub meej tias txhua yam ua haujlwm zoo. Los ntawm lub neej ntawd, nws yuav yog ntsia hauv /usr/share/ mav thiab /etc/ mav qhov chaw. Qhov no yuav qhia cov ntsia Apache Maven version.

Ib sab ntawm no, Maven nyob qhov twg ntawm 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:

Tsis tas li ntawd, Maven nyob qhov twg? Nruab Maven

  • Windows 7: Txoj nyem rau Kuv Lub Computer thiab xaiv Properties.
  • Ntawm Advanced tab, xaiv Environment Variables, thiab tom qab ntawd nrhiav qhov Systems Variable hu ua Path thiab ntxiv rau nws txoj hauv kev rau koj cov ntaub ntawv, piv txwv li C: Program Filesapache-maven-3.5.

Ntawm no, kuv yuav paub li cas yog Maven tau nruab Ubuntu?

  1. Tau txais Maven Pob. Qhib lub davhlau ya nyob twg thiab ntaus cov lus txib $ apt-cache nrhiav maven.
  2. Nruab Lub Pob. Khiav cov lus txib $ sudo apt-tau nruab maven los ntawm tib lub davhlau ya nyob twg.
  3. Xeem Maven Installation hauv Ubuntu. Khiav cov lus txib mvn -version los xyuas seb cov maven tau teeb tsa zoo.

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.

Pom zoo: