Ekryd / sortpom

Maven plugin that helps the user sort pom.xml.
https://github.com/Ekryd/sortpom/wiki/
BSD 3-Clause "New" or "Revised" License
336 stars 181 forks source link

Setting to disable pom sorting? #343

Closed sixcorners closed 1 year ago

sixcorners commented 1 year ago

This might sound like kind of a stupid request but I mostly want to use sortPom in spotless to format the file. Think it would be possible to make a setting to not sort stuff? Thinking it could be like setting predefinedSortOrder to "none" or something. Not sure.

Ekryd commented 1 year ago

Interesting! Could you attach an unsorted and sorted file to experiment with?

Ekryd commented 1 year ago

Is this still an active request or should I close the issue?

sixcorners commented 1 year ago

I decided that if I just want xml formatting it makes better sense to use an xml formatter. Thanks though

Ekryd commented 1 year ago

No worries! If formatting the xml is the issue, I agree that an xml formatter would be enough. If you want to reorder the xml structure (e.g making sure that the xml tags xxx always comes after tags yyy) then you are welcome to experiment with SortPom a bit more. Best of luck!