-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
License Header is removed from 3.1.0 release #205
Comments
Well, the handling of DocType in the XML has been removed due to vulnerability issues. Do you have an example xml? |
sure you can run it against this https://github.com/hazendaz/base-parent/blob/master/pom.xml with simple sortpom:sort which Results in license header removal which is just a comment. |
I see also that |
@dwalluck the 'ignore' can be ignored. I didn't run it with parameters that would not do that. My only issue is the license header is being removed. If I ran all the parameters I use it would have left that bit alone. The example here was just for a quick project to look at that shows the issue. |
@dwalluck Use |
OK, so your config changed? I filed #206 and thought that it might be related to that issue. In my case, I have not changed anything, so I wouldn't expect anything to change (by default, anyway). |
I had not changed anything either. The repo I saw this on first is not public. So I added a quick check on one I have that is public that did not use same configuration. If i recall, that configuration with the whitespace removal actually changed with 3.0.0 of this plugin. So now my private and public repo have same configuration, same issue noted here with license header being removed. |
Thanks for the example. Removing the comment sounds suspicious. I’ll have a look at it. |
This is a problem. When the root element is added to a newly created xml document, all content is cleared (including the comment). I will work on a fix as soon as possible. |
Branch issue-205-License_Header_is_removed_from_3_1_0_release created! |
Found the problem. Will issue a new version |
This should be fixed with version 3.1.1. @hazendaz please try it out and report if it fixes your problem |
Confirmed fixed. Thank you!
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Björn Ekryd ***@***.***>
Sent: Tuesday, May 24, 2022 2:56:33 PM
To: Ekryd/sortpom ***@***.***>
Cc: Jeremy Landis ***@***.***>; Mention ***@***.***>
Subject: Re: [Ekryd/sortpom] License Header is removed from 3.1.0 release (Issue #205)
This should be fixed with version 3.1.1. @hazendaz<https://github.com/hazendaz> please try it out and report if it fixes your problem
—
Reply to this email directly, view it on GitHub<#205 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHODI6EBGLIJ5HRVSEV2MTVLUQ6DANCNFSM5WWDIWWQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Fixed for me, too. |
Great! I hope that you are satisfied with SortPom and thanks for reporting the issue |
I looked over the change log but not seeing any direct mention of what has occurred. My best guess is that something in the jdom 2 upgrade. With 3.0.1, license header in pom.xml is left alone. In 3.1.0, it is deleted. Was this intential? Is there some way to work around the issue?
The text was updated successfully, but these errors were encountered: