Yuav ua li cas koj xyuas Maven yog nruab los yog tsis?
Yuav ua li cas koj xyuas Maven yog nruab los yog tsis?

Video: Yuav ua li cas koj xyuas Maven yog nruab los yog tsis?

Video: Yuav ua li cas koj xyuas Maven yog nruab los yog tsis?
Video: Poj niam zoo nyob ntawm ncauj paum los yog hauv qhov kawg 2024, Kaum ib hlis
Anonim

Qhib koj cov lus txib los ntawm kev siv cntrl + R thiab ntaus 'cmd' thiab Enter. hom mvn -version. Yog maven ntsia , koj yuav tsum pom Apache mav version tso tawm, yog tias tsis mvn command yuav tsis yog raug lees paub.

Kuj nug, Kuv yuav ua li cas thiaj paub tias Maven raug teeb tsa?

Kev xeem a Maven Installation . Ib zaug Maven yog ntsia , koj ua tau kuaj lub version los ntawm kev khiav mvn -v los ntawm kab hais kom ua. Yog Maven ua tau ntsia , koj yuav tsum pom ib yam dab tsi zoo li cov zis hauv qab no. Yog koj pom cov zis no, koj paub uas Maven yog muaj thiab npaj siv.

Tsis tas li ntawd, kuv yuav nrhiav tau kuv txoj kev maven li cas? 1 Teb

  1. Rov qab mus rau Start->Control Vaj Huam Sib Luag-> System-> Advanced System Settings-> Ib puag ncig hloov pauv-> System Variables.
  2. Tsim ib puag ncig tshiab hloov pauv hu ua "JAVA_HOME" thiab teeb tsa tus nqi rau cov npe ntawm koj lub java installation. e.g. "C:Program FilesJavajdk1. 6.0_32in"

Xav txog qhov no, kuv yuav ua li cas thiaj paub yog tias Maven tau nruab rau ntawm Windows?

Qhov rai Cov lus qhia qhib qhov kev hais kom ua tshiab (Winkey + R ces ntaus cmd) thiab khiav mvn -v to txheeb xyuas tus kev teeb tsa.

Kuv yuav paub li cas yog tias kuv muaj JDK ntsia?

Ua ntej sim nws hauv koj qhov kev hais kom ua raws li set path = C: Program FilesJava jdk ua (version)in”, ces ntaus “javac” nyob rau hauv tam sim yog nws pib qhia pawg ntawm cov ntaub ntawv, ces nws yog ntsia.

Pom zoo: