maven-help-plugin icon indicating copy to clipboard operation
maven-help-plugin copied to clipboard

[MPH-217] help:effective-pom does not show the value for a POM's "packaging"

Open jira-importer opened this issue 1 year ago • 1 comments

Gary D. Gregory opened MPH-217 and commented

Running "mvn help:effective-pom" does not show the value for a POM's "packaging" value.

It's not clear from the site documentation if "packaging" is inherited from the parent POM or not.

I understand the default is "jar".

I expect to see the "packaging" value when running "mvn help:effective-pom" so I can understand if the value is being picked up from a parent POM or if it is defaulting to "jar".

TY.


Affects: 3.5.1

jira-importer avatar Nov 07 '24 12:11 jira-importer

Michael Osipov commented

Wild guess, the serializer of the POM omits default value?!

 

https://github.com/apache/maven-help-plugin/blob/e3e93fede57fc5de21ef4e29494b6e4b683f0e16/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java#L181

jira-importer avatar Nov 07 '24 12:11 jira-importer