Cov txheej txheem:

Maven surefire plugins sawv cev rau dab tsi?
Maven surefire plugins sawv cev rau dab tsi?

Video: Maven surefire plugins sawv cev rau dab tsi?

Video: Maven surefire plugins sawv cev rau dab tsi?
Video: JUnit 5 Basics 13 - Maven surefire plugin integration 2024, Hlis ntuj nqeg
Anonim

Cov Surefire Plugin yog siv thaum lub sij hawm xeem theem ntawm kev tsim lifecycle los ua kom tiav chav ntsuas ntawm ib daim ntawv thov. Nws tsim cov ntawv ceeb toom hauv ob hom ntaub ntawv sib txawv Plain text files (.txt) XML cov ntaub ntawv (.xml)

Ib yam li ntawd, nws tau nug, qhov kev kuaj xyuas qhov tseeb yog dab tsi?

Project Modules Dawb ntawm kev vam meej. Muaj tseeb tiag yog a xeem lub moj khaum project. Qhov no yog POM aggregator hauv Apache Maven Surefire qhov project. SureFire Booter. API thiab cov cuab yeej siv los ntawm forked kuaj khiav hauv JVM sub-process.

Ib yam li ntawd, Maven qhov chaw plugin yog dab tsi? Apache Maven Source Plugin . Cov Tau qhov twg los Plugin tsim ib lub thawv archive ntawm cov qhov chaw cov ntaub ntawv ntawm qhov project tam sim no. Lub thawv ntawv yog, los ntawm lub neej ntawd, tsim nyob rau hauv qhov project lub hom phiaj directory.

Hauv qhov no, hom Maven plugins yog dab tsi?

Yeej 2 yam tseem ceeb ntawm plugins muaj nyob hauv maven raws li teev hauv qab no:

  • Tsim Plugins - Feem ntau cov plugins no yuav ua haujlwm thaum lub sijhawm tsim. Cov plugins no tau txhais nyob rau hauv lub caij hauv pom.
  • Qhia Plugins - Cov plugins no raug tua thaum lub sijhawm tsim lub vev xaib (kev qhia lossis javadocs tiam) theem.

Vim li cas peb xav tau surefire plugin?

Cov Surefire Plugin yog siv thaum lub sij hawm xeem theem ntawm kev tsim lifecycle los ua kom tiav chav ntsuas ntawm ib daim ntawv thov. Nws tsim cov ntawv ceeb toom hauv ob hom ntaub ntawv sib txawv: Cov ntaub ntawv dawb (*. XML cov ntaub ntawv (*.

Pom zoo: