You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Nord, James" <JN...@nds.com> on 2012/07/13 15:49:06 UTC
pom formatter?
Hi all,
I'm wondering if anyone knows of a command line formatter for pom files?
Not just converting tabs/spaces and line lengths but sorting out the ordering of elements (model comes before parent which comes before dependencies etc) (whilst also at the same time maintaining comments!).
Does anyone know if such a beast exists?
/James
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
RE: pom formatter?
Posted by "Nord, James" <JN...@nds.com>.
Thanks Stephen,
It appears to use spaces for the indentation of the moved block start tag - whereas the rest of the block (and the close) are left with tabs.
But otherwise just the ticket :-)
/James
> -----Original Message-----
> From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com]
> Sent: 13 July 2012 14:56
> To: Maven Users List
> Subject: Re: pom formatter?
>
> tidy-maven-plugin @ mojo (only a snapshot release) will apply the canonical
> pom ordering but does not handle indenting (in fact it tries to keep all the
> indenting the same
>
> On 13 July 2012 14:49, Nord, James <JN...@nds.com> wrote:
>
> > Hi all,
> >
> > I'm wondering if anyone knows of a command line formatter for pom files?
> >
> > Not just converting tabs/spaces and line lengths but sorting out the
> > ordering of elements (model comes before parent which comes before
> > dependencies etc) (whilst also at the same time maintaining comments!).
> >
> > Does anyone know if such a beast exists?
> >
> > /James
> >
> >
> > ________________________________
> >
> >
> >
> >
> ****************************************************************
> ******
> > **************** This message is confidential and intended only for
> > the addressee. If you have received this message in error, please
> > immediately notify the postmaster@nds.com and delete it from your
> > system as well as any copies.
> > The content of e-mails as well as traffic data may be monitored by NDS
> > for employment and security purposes. To protect the environment
> > please do not print this e-mail unless necessary.
> >
> > NDS Limited. Registered Office: One London Road, Staines, Middlesex,
> > TW18 4EX, United Kingdom. A company registered in England and Wales.
> > Registered no. 3080780. VAT no. GB 603 8808 40-00
> >
> >
> ****************************************************************
> ******
> > ****************
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: pom formatter?
Posted by Stephen Connolly <st...@gmail.com>.
tidy-maven-plugin @ mojo (only a snapshot release) will apply the canonical
pom ordering but does not handle indenting (in fact it tries to keep all
the indenting the same
On 13 July 2012 14:49, Nord, James <JN...@nds.com> wrote:
> Hi all,
>
> I'm wondering if anyone knows of a command line formatter for pom files?
>
> Not just converting tabs/spaces and line lengths but sorting out the
> ordering of elements (model comes before parent which comes before
> dependencies etc) (whilst also at the same time maintaining comments!).
>
> Does anyone know if such a beast exists?
>
> /James
>
>
> ________________________________
>
>
>
> **************************************************************************************
> This message is confidential and intended only for the addressee. If you
> have received this message in error, please immediately notify the
> postmaster@nds.com and delete it from your system as well as any copies.
> The content of e-mails as well as traffic data may be monitored by NDS for
> employment and security purposes. To protect the environment please do not
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales. Registered
> no. 3080780. VAT no. GB 603 8808 40-00
>
> **************************************************************************************
>