Jobin Thomas
Jobin Thomas

Reputation: 109

find the pom.xml of a web application that is deployed in tomcat

I have a bunch of web applications that are deployed in tomcat. I want to find the pom.xml file for these applications. Is there a way I can find the pom.xml from these applications without checking out the source code on my machine and checking it out that way. I know that I can see all my properties files and web.xml files. But, can't find the pom.xml file. I used mvn package to create the war files. Thanks in advance!

Upvotes: 3

Views: 4545

Answers (2)

Bruno Ribeiro
Bruno Ribeiro

Reputation: 6197

In the generated WAR, take a look at META-INF\maven\${project.groupId}\${project.artifactId}\ folder, like the image:

pom.xml in WAR file

For this WAR, ${project.groupId} is com.brunocesar and ${project.artifactId} is springmvc-sample

Check if pom file is there.

Upvotes: 5

David
David

Reputation: 2702

Packaging the war file won't include the pom.xml - there's really no need for it to be there. If you really want to include the pom.xml inside the war, you can have maven include it as a resource.

Upvotes: 1

Related Questions