elharo opened a new pull request, #405: URL: https://github.com/apache/maven-help-plugin/pull/405
**Problem:** `help:effective-pom` does not show the `<packaging>` element when the packaging is not explicitly set in the POM (defaulting to `jar`). `MavenXpp3Writer` intentionally omits the `<packaging>` element when it is `null` or equals `"jar"` (the default), so users cannot see the effective packaging value. **Fix:** After serialization, detect if the `<packaging>` element is missing and insert it into the XML output if so. This ensures the effective packaging value is always visible. **Test:** Added an integration test (`effective-pom-packaging`) with a POM that has no `<packaging>` element, verifying the output contains `<packaging>jar</packaging>`. Fixes #332 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
