-
Notifications
You must be signed in to change notification settings - Fork 460
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
XML formatter issue in maven plugin #404
Comments
#369 solved a problem where WTP results can b different depending whether an XSD ( @parameshjava Have you tried using BTW: You tell Spotless to read/write the file as |
@fvgh thanks for the quick reply.
Please let me know, still I am missing anything. In local only I can apply |
@parameshjava So you say that the problem still occurs with the latest version of WTP, yes? About the It would be nice if you could describe the differences. Looking at the error message, I would say that the indentation and/or line ending is different, but how? Is it tabs/versus spaces? Line-ending? Is the whole document affected or just parts? If just parts are different, which XML elements of the POM are affected? |
@fvgh When I use |
Below is the error log, I can find in the jenkins.
|
To get this right:
Correct so far? |
Yes correct. |
Since I would recommend to check that Modify your If this does not give you a hint where the problem might be, I would recommend to add an Ant task to your build script which copies |
I agree with @fvgh's assessment that there's something weird with DevStyleXml.prefs getting picked up by CI. Perhaps it's something to do with ambiguous behavior of basedir in a multi-module project? |
@fvgh @nedtwigg Thanks for your time. I after analysed my pipeline library, understood the issue. Pipeline library taking the existing pom.xml and modifying the version from SNAPSHOT to latest cut version. During this process, To cross verify this, added some dummy xml with valid format and found working fine. Sorry for faulty reported issue. Closing this issue. |
@parameshjava |
pom.xml
file.Also tried with below.
In another trail, use the below content.
I am not sure, whether I am missing anything here or it's a defect.
The text was updated successfully, but these errors were encountered: