On Sun, 18 Aug 2019 at 21:38, Karl Heinz Marbaise <khmarba...@gmx.de> wrote: > > Hi, > > you should take a look at: > > https://github.com/Ekryd/sortpom > > that allows customization...and has useful defaults.
I did, but it is not able to handle inline comments correctly. Also it reformats text blocks. Given that the work is once-off for each POM, and it's pretty easy to re-order sections with a decent editor, I don't think it's worth spending time configuring and testing an automated solution. > Kind regards > Karl Heinz Marbaise > > On 18.08.19 12:45, sebb wrote: > > On Sun, 18 Aug 2019 at 10:19, Romain Manni-Bucau <rmannibu...@gmail.com> > > wrote: > >> > >> Hi everyone, > >> > >> Why not using a plugin allowing to put it in parent pom instead of a > >> script? >> <artifactId>tidy-maven-plugin</artifactId> > > > > I looked at Tidy, but it does not support customisation of the order. > > Also it does not preserve comment placement, nor text layout within tags. > > > > There are other tools, but as I noted else-thread, automated tools > > cannot guarantee correct comment placement. > > > > Humans are much better at this sort of task. > > > > BTW, if you want to check that you have not accidentally > > dropped/duplicated any entries, a quick check is to compare the number > > of lines before and after. > > More detailed: compare the sorted poms (that will make it easier to > > allow for blank line adjustments) > > > >> Le dim. 18 août 2019 à 10:59, Gilles Sadowski <gillese...@gmail.com> a > >> écrit : > >> > >>> 2019-08-15 23:54 UTC+02:00, sebb <seb...@gmail.com>: > >>>> I've produced a draft layout on the Wiki. > >>>> Comments welcome! > >>>> https://cwiki.apache.org/confluence/x/yg94Bw > >>>> > >>>> On Thu, 15 Aug 2019 at 14:43, Matt Sicker <boa...@gmail.com> wrote: > >>>>> > >>>>> The layout you propose sounds reasonable to me. > >>>>> > >>>>> On Thu, Aug 15, 2019 at 08:32, sebb <seb...@gmail.com> wrote: > >>>>> > >>>>>> The Ruby tool and some sample output: > >>>>>> > >>>>>> http://svn.apache.org/repos/asf/commons/scripts/ > >>>>>> examples/ > >>>>>> pomskel.rb > >>> > >>> Could you make the script highlight which sections must be moved? > >>> > >>> Thanks, > >>> Gilles > >>> > >>>>>> [...] > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > >>> For additional commands, e-mail: dev-h...@commons.apache.org > >>> > >>> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org