What is “pom” packaging in maven?

前端 未结 10 1788
长发绾君心
长发绾君心 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:24

    pom is basically a container of submodules, each submodule is represented by a subdirectory in the same directory as pom.xml with pom packaging.

    Somewhere, nested within the project structure you will find artifacts (modules) with war packaging. Maven generally builds everything into /target subdirectories of each module. So after mvn install look into target subdirectory in a module with war packaging.

    Of course:

    $ find . -iname "*.war"
    

    works equally well ;-).

提交回复
热议问题