If I pack the web app with the whole maven: exploded war, why not include pom.xml and pom.properties?

I am new to Maven and I noticed an interesting thing in the Maven WAR plugin.

When I pack my Java web application using war: war, a zipper is created. This war also contains the pom.xml and pom.properties files in the META-INF directory. But if I pack my application with war: exploded and created an exploded military directory, these two files will not be included.

Now I'm curious why pom.xml and pom.properties are not packaged in a blown up war. In addition to these two files, the contents of the bloated and zipped war lightning are equal.

Is there a reason the plugin skips pom.xml and pom.properties from a blown war?

+3
source share
2 answers

Is there a reason the plugin skips pom.xml and pom.properties from a blown war?

"Component", which adds a file pom.propertiesand pom.xmlin the file generated during - it is the Maven Archiver . You can configure it using an optional parameter . war:war archive

Interestingly, it also has this parameter, but at the moment it does not process (see this comment from MWAR-86), and the blown up war does not currently correspond exactly to the last war. war:exploded war:exploded<archive>


But without pom files, I can't start a blown up war with my local JBoss. Therefore, I can’t test and debug it.

pom, META-INF/maven/${groupId}/${artifactId}/pom.xml pom.properties, META-INF/maven/${groupId}/${artifactId}/pom.properties, "", , . , JBoss. ?

+3

mvn war: war , (pom, MANIFEST.MF)... : ( ).

0

Source: https://habr.com/ru/post/1742080/


All Articles