Cov txheej txheem:

POM XML nyob qhov twg hauv NetBeans?
POM XML nyob qhov twg hauv NetBeans?

Video: POM XML nyob qhov twg hauv NetBeans?

Video: POM XML nyob qhov twg hauv NetBeans?
Video: Tus tav nyob qhov twg yuav mus kom txog 3/22/23 2024, Kaum ib hlis
Anonim

xml cov ntaub ntawv ( POM ) nyob rau hauv qhov Project Files node nyob rau hauv Projects qhov rais. Yog koj saib ntawm POM rau cov NetBeans Platform Application project, koj tuaj yeem pom tias ob qho lwm qhov modules tsim los ntawm tus wizard tau teev tseg raws li cov qauv hauv daim ntawv thov.

Ib yam li ntawd, tib neeg nug, NetBeans puas siv Maven?

Maven yog tsim automation cuab tam rau Java project tswj. Koj tuaj yeem yooj yim qhib thiab ua haujlwm nrog Maven tej yaam num hauv IDE. Hauv NetBeans IDE 6.7 thiab tshiab dua, Maven kev txhawb nqa yog suav nrog hauv IDE. IDE tso cai rau koj los tsim Maven tej yaam num los ntawm archetypes siv New Project wizard.

Ib tug kuj yuav nug, Kuv yuav qhib Maven qhov project hauv NetBeans li cas? Qhib ib qhov project maven hauv NetBeans

  1. Qhib NetBeans.
  2. Xaiv cov ntawv qhia zaub mov> Qhib qhov project xaiv.
  3. Xaiv qhov project qhov chaw, qhov twg ib qhov project tau tsim siv Maven. Peb tau tsim Java Project consumerBanking. Mus rau 'Creating Java Project' tshooj, saib yuav ua li cas los tsim ib qhov project siv Maven.

Tom qab ntawd, lo lus nug yog, kuv yuav muab cov ntaub ntawv tso rau hauv NetBeans qhov twg?

Txhawm rau ntxiv JAR cov ntaub ntawv rau koj lub vev xaib thov, ua raws cov kauj ruam no

  1. Download tau cov ntaub ntawv JAR rau koj lub computer.
  2. Qhib NetBeans thiab right-click ntawm qhov project npe hauv qhov Projects tab.
  3. Xaiv Cov Khoom.
  4. Xaiv cov tsev qiv ntawv.
  5. Nyem qhov Add Jar/Folder khawm.
  6. Coj mus rau hauv phau ntawv teev cov ntaub ntawv JAR rub tawm.

Kuv yuav download tau Maven li cas?

Txhawm rau nruab Apache Maven Hauv Windows, koj tsuas yog xav tau rub tawm tus Maven cov zip cov ntaub ntawv, unzip nws mus rau ib lub nplaub tshev, thiab teeb tsa lub Windows ib puag ncig hloov pauv. Kuaj nrog: JDK 10.

  1. JDK thiab JAVA_HOME.
  2. Download Apache Maven.
  3. Ntxiv MAVEN_HOME qhov system hloov pauv.
  4. Ntxiv %MAVEN_HOME% rau hauv PATH.
  5. Kev pov thawj.
  6. FAQs.

Pom zoo: