What is “pom” packaging in maven?

前端 未结 10 1777
长发绾君心
长发绾君心 2020-11-30 17:24

I was given a maven project to compile and get deployed on a tomcat server. I have never used maven before today, but I have been googling quite a bit. It seems like the top

10条回答
  •  甜味超标
    2020-11-30 18:06

    pom packaging is simply a specification that states the primary artifact is not a war or jar, but the pom.xml itself.

    Often it is used in conjunction with "modules" which are typically contained in sub-directories of the project in question; however, it may also be used in certain scenarios where no primary binary was meant to be built, all the other important artifacts have been declared as secondary artifacts

    Think of a "documentation" project, the primary artifact might be a PDF, but it's already built, and the work to declare it as a secondary artifact might be desired over the configuration to tell maven how to build a PDF that doesn't need compiled.

提交回复
热议问题