apache / apache/maven-help-plugin
effective-pom duplicate xml declaration and not pretty printed
- Dominant language
- Java
- Stars
- 29
- Forks
- 42
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 6
Description
### Affected version
3.5.2
### Bug description
The effective-pom goal will generate invalid XML output in some cases. Run 'mvn help:effective-pom -Dverbose=true' on the attached pom.xml and you will see output like that in maven-help-plugin.txt
This output shows the following problems:
* There are two xml declarations, this is actually invalid
* The xml has not been pretty-printed
* Comments from the 'verbose' flag still start with
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with AbstractEffectiveMojo.prettyFormat() and EffectivePomMojo.execute(), then reproduce the issue using the attached pom.xml and `mvn help:effective-pom -Dverbose=true`. Compare the output with maven-help-plugin.txt; done means the effective POM has one XML declaration, is pretty-printed, and the verbose comments are formatted correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100