Cov txheej txheem:

Dab tsi yog Maven plugins?
Dab tsi yog Maven plugins?

Video: Dab tsi yog Maven plugins?

Video: Dab tsi yog Maven plugins?
Video: Yog Vim Dab Tsi - Maiv Choj (cover) 2024, Hlis ntuj nqeg
Anonim

Plugins yog lub hauv paus feature ntawm Maven uas tso cai rau rov siv dua ntawm kev tsim cov logic thoob plaws ntau qhov haujlwm. Lawv ua qhov no los ntawm kev ua tiav "kev nqis tes ua" (piv txwv li tsim cov ntaub ntawv WAR lossis suav nrog cov kev sim hauv chav tsev) hauv cov ntsiab lus ntawm qhov project piav qhia - Project Object Model (POM).

Tsuas yog li ntawd, dab tsi yog plugins siv hauv Maven?

10 Qhov Tseem Ceeb Maven Plugins rau Java Developers

  • maven-compiler-plugin. Qhov no yog qhov tseem ceeb tshaj plaws maven plugin.
  • maven-surefire-plugin.
  • maven-assembly-plugin.
  • maven-jetty-plugin.
  • maven-dependency-plugin.
  • maven-jar-plugin.
  • maven-war-plugin.
  • maven-deploy-plugin.

Tsis tas li ntawd, Maven Shade plugin yog dab tsi? Apache Maven Shade Plugin . Qhov no plugin muab lub peev xwm los ntim cov khoom qub rau hauv uber-jar, suav nrog nws qhov kev vam khom thiab rau ntxoov ntxoo - i.e. rename - cov pob khoom ntawm qee qhov kev vam khom.

Tom qab ntawd, ib tug kuj yuav nug, Maven tsov rog plugin yog dab tsi?

Apache Maven WAR Plugin . Cov WAR Plugin yog lub luag haujlwm los sau tag nrho cov khoom siv dag zog, cov chav kawm thiab cov peev txheej ntawm daim ntawv thov web thiab ntim lawv rau hauv daim ntawv thov web archive.

Maven plugins khaws cia nyob qhov twg?

Qhov Install Plugin siv cov ntaub ntawv nyob rau hauv lub POM (groupId, artifactId, version) los txiav txim qhov chaw tsim nyog rau cov khoom qub nyob rau hauv lub zos repository. Lub chaw khaws cia hauv zos yog lub chaw khaws khoom hauv zos uas txhua yam khoom siv uas xav tau rau kev tsim yog khaws cia . Los ntawm lub neej ntawd, nws nyob hauv tus neeg siv lub tsev directory (~/.

Pom zoo: