Hi, I have the same need and I have opened a Sonar feature request: http://jira.codehaus.org/browse/SONAR-1399 Read the comments to see the proposals.
You can also look at http://maven.apache.org/developers/conventions/code.html#POM_Code_Convention to see Maven POM element ordering convention. Regards, Julien ----- Message d'origine ---- > De : Nick Stolwijk <nick.stolw...@gmail.com> > À : Maven Users List <users@maven.apache.org> > Envoyé le : Mer 24 Février 2010, 11 h 08 min 05 s > Objet : Re: Clean up of pom files > > Thanks, that plugin looks promising! Only their default ordering is > not my preferable ordering, but I can see it is configurable. :) > > Thanks, > > Nick Stolwijk > ~Java Developer~ > > IPROFS BV. > Claus Sluterweg 125 > 2012 WS Haarlem > http://www.iprofs.nl > > > > On Wed, Feb 24, 2010 at 10:48 AM, Anders Hammar wrote: > > You might want to use this plugin: > > http://code.google.com/p/sortpom/ > > > > /Anders > > > > On Wed, Feb 24, 2010 at 10:30, Nick Stolwijk wrote: > > > >> Hi all, > >> > >> We have a multitude of components and projects all build with maven > >> and we want to enforce some standard layout for the pom files, like > >> the ordering of the elements(like the ordering in the schema) and > >> forbidding some elements (like company and url, there are already set > >> in the company pom). > >> > >> So 2 questions: > >> - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) > >> files based on their schema? > >> - Is there an enforcer plugin who can enforce the ordering of the > >> elements and forbidding some elements. > >> > >> Hope someone can help, > >> > >> Nick Stolwijk > >> ~Java Developer~ > >> > >> IPROFS BV. > >> Claus Sluterweg 125 > >> 2012 WS Haarlem > >> http://www.iprofs.nl > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org