Re: [ALL] POM file standardisation of layout

2019-08-18 Thread sebb
On Sun, 18 Aug 2019 at 21:38, Karl Heinz Marbaise 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

Re: [ALL] POM file standardisation of layout

2019-08-18 Thread Karl Heinz Marbaise
Hi, you should take a look at: https://github.com/Ekryd/sortpom that allows customization...and has useful defaults. Kind regards Karl Heinz Marbaise On 18.08.19 12:45, sebb wrote: On Sun, 18 Aug 2019 at 10:19, Romain Manni-Bucau wrote: Hi everyone, Why not using a plugin allowing to

Re: [ALL] POM file standardisation of layout

2019-08-18 Thread sebb
On Sun, 18 Aug 2019 at 10:19, Romain Manni-Bucau wrote: > > Hi everyone, > > Why not using a plugin allowing to put it in parent pom instead of a > script? >> tidy-maven-plugin I looked at Tidy, but it does not support customisation of the order. Also it does not preserve comment placement, nor

Re: [ALL] POM file standardisation of layout

2019-08-18 Thread sebb
On Sun, 18 Aug 2019 at 09:59, Gilles Sadowski wrote: > > 2019-08-15 23:54 UTC+02:00, sebb : > > 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 wrote: > >> > >> The layout you

Re: [ALL] POM file standardisation of layout

2019-08-18 Thread Romain Manni-Bucau
Hi everyone, Why not using a plugin allowing to put it in parent pom instead of a script? >> tidy-maven-plugin Le dim. 18 août 2019 à 10:59, Gilles Sadowski a écrit : > 2019-08-15 23:54 UTC+02:00, sebb : > > I've produced a draft layout on the Wiki. > > Comments welcome! > >

Re: [ALL] POM file standardisation of layout

2019-08-18 Thread Gilles Sadowski
2019-08-15 23:54 UTC+02:00, sebb : > 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 wrote: >> >> The layout you propose sounds reasonable to me. >> >> On Thu, Aug 15, 2019 at 08:32, sebb

Re: [ALL] POM file standardisation of layout

2019-08-15 Thread sebb
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 wrote: > > The layout you propose sounds reasonable to me. > > On Thu, Aug 15, 2019 at 08:32, sebb wrote: > > > The Ruby tool and some sample

Re: [ALL] POM file standardisation of layout

2019-08-15 Thread Matt Sicker
The layout you propose sounds reasonable to me. On Thu, Aug 15, 2019 at 08:32, sebb wrote: > The Ruby tool and some sample output: > > http://svn.apache.org/repos/asf/commons/scripts/ > examples/ > pomskel.rb > > On Thu, 15 Aug 2019 at 14:08, sebb wrote: > > > > On Thu, 15 Aug 2019 at 13:06,

Re: [ALL] POM file standardisation of layout

2019-08-15 Thread sebb
The Ruby tool and some sample output: http://svn.apache.org/repos/asf/commons/scripts/ examples/ pomskel.rb On Thu, 15 Aug 2019 at 14:08, sebb wrote: > > On Thu, 15 Aug 2019 at 13:06, Claude Warren wrote: > > > > Since the POM is an XML document how about a simple XSLT that will convert > >

Re: [ALL] POM file standardisation of layout

2019-08-15 Thread sebb
On Thu, 15 Aug 2019 at 13:06, Claude Warren wrote: > > Since the POM is an XML document how about a simple XSLT that will convert > them all to the same format. Unfortunately I don't think it's simple. Comments on their own line apply to the following tag -- but not always. And a comment at the

Re: [ALL] POM file standardisation of layout

2019-08-15 Thread Claude Warren
Since the POM is an XML document how about a simple XSLT that will convert them all to the same format. Alternatively an XML diff could be performed where each leaf node is contextualized by generating the the path from the root to the leaf, the can be sorted and a standard diff performed to

[ALL] POM file standardisation of layout

2019-08-15 Thread sebb
I think it might be useful to try to work towards standardising the order of sections within POMs. This will make it easier to compare them across components. (e.g. to see why one pom works and another fails!) And should be easier to maintain. In particular, I would like to move the developer