What is "pom" packaging in maven?

Derek :

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 level pom.xml files in this project have the packaging type set as pom.

What am I supposed to do after mvn install to get this application deployed? I was expecting to be able to find a war file somewhere or something, but I guess I am looking in the wrong place or missing a step.

Tomasz Nurkiewicz :

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 ;-).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

POM packaging option jar to war change error

Invalid packaging for parent pom.xml, must be "pom" but is "ear"

Changing packaging based on active profile in pom

What is pluginManagement in Maven's pom.xml?

What is the significance of the POM file that Maven places in a JAR file, is it used by anything?

What POM dependency would allow Maven to find this JAR?

Maven packaging for websphere

Spring boot properties vs maven pom packaging tag

What dependency to add in maven pom for using powermock with mockito1?

Maven NumberFormatException when packaging

Packaging tag missing in pom file

What is a maven pom tag?

What is the difference in maven between dependency and plugin tags in pom xml?

Spring Boot with POM packaging Agregator

What are the difference between pom.xml and effective pom in Apache Maven?

Only projects with 'pom' packaging can declare modules

Use pom-packaging maven project as dependency

Maven war - 'packaging' with value 'war' is invalid. Aggregator projects require 'pom' as packaging

Gradle alternative to maven <packaging>pom

StormCrawler maven packaging error

Modules packaging in maven

What are the utilities of packaging in pom file ? What are values that can take packaging and what is their meaning?

.getResource("/filename") returns null when maven packaging is pom

What tags are really required or recommended when using packaging type pom in Maven?

What does the first line means in a Maven pom.xml

How do I remove Maven Error Aggregator projects require 'pom' as packaging

How to skip failsafe execution for pom packaging?

"Unable to add module to the current project as it is not of packaging type 'pom'" - How to load a given Maven project into Vscode/Vscodium?

What is the relationship between Spring Boot and the Maven pom.xml file?