-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating invalid pom.xml is skipped silently #321
Comments
* ModifiedPomXMLEventReader now takes a path and Log object * If an error is encountered during parsing, a message is logged
+1 |
i'm also of the opinion that a child POM with unparseable XML should not be skipped but fail the build. |
I ran into a situation today where a module's pom.xml file had a leading space, i.e. the first line was:
Maven's XML parser happily ignored this and built the project. However, when the versions-maven-plugin was used on the aggregator, the module was silently skipped and no debug information indicated the source of the problem (sanitized debug information is below) -- based on the debug information, both the aggregator and its two child modules (core and react-app) should have been updated, but only the aggregator and core was. I had to run a debugger to see the problem.
This is (I hope) a rare occurrence, but I do think it would be useful if something was output in this case.
Debug log:
The text was updated successfully, but these errors were encountered: