You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Grove <ps...@gmail.com> on 2011/02/25 00:21:15 UTC

Comparing dependency trees

Is there a way of comparing the dependency tree of 2 version of the same POM
and printing out the differences?

Re: Comparing dependency trees

Posted by Baptiste MATHUS <bm...@batmat.net>.
Yup, maybe this is an idea for a new goal like dependency:compare.

Currently, the only solution I know is the one Wayne described.

Cheers

2011/2/25 Paul Grove <ps...@gmail.com>

> Wayne,
>
> Thanks for the response, diff is one solution but still to manual for my
> liking. We are using WAR overlays as a sort of deployment description of
> our
> application as we have lots of components that can be changed for each
> deployment for different customers based around a core product. What I want
> to do is when we do a new deployment for an existing deployment we can
> produce some report showing what dependencies have changed version, what
> have been removed and what has been added.
>
> Seems like an extension to the dependency plugin to me?
>
> Paul
>
> On 25 February 2011 04:17, Wayne Fay <wa...@gmail.com> wrote:
>
> > > Is there a way of comparing the dependency tree of 2 version of the
> same
> > POM
> > > and printing out the differences?
> >
> > Other than something like this (below), I don't know of any way to do
> this.
> >
> > mvn dependency:tree > 1.txt
> > mvn dependency:tree -f pom-old.xml > 2.txt
> > diff 1.txt 2.txt
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Re: Comparing dependency trees

Posted by Paul Grove <ps...@gmail.com>.
Wayne,

Thanks for the response, diff is one solution but still to manual for my
liking. We are using WAR overlays as a sort of deployment description of our
application as we have lots of components that can be changed for each
deployment for different customers based around a core product. What I want
to do is when we do a new deployment for an existing deployment we can
produce some report showing what dependencies have changed version, what
have been removed and what has been added.

Seems like an extension to the dependency plugin to me?

Paul

On 25 February 2011 04:17, Wayne Fay <wa...@gmail.com> wrote:

> > Is there a way of comparing the dependency tree of 2 version of the same
> POM
> > and printing out the differences?
>
> Other than something like this (below), I don't know of any way to do this.
>
> mvn dependency:tree > 1.txt
> mvn dependency:tree -f pom-old.xml > 2.txt
> diff 1.txt 2.txt
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Comparing dependency trees

Posted by Wayne Fay <wa...@gmail.com>.
> Is there a way of comparing the dependency tree of 2 version of the same POM
> and printing out the differences?

Other than something like this (below), I don't know of any way to do this.

mvn dependency:tree > 1.txt
mvn dependency:tree -f pom-old.xml > 2.txt
diff 1.txt 2.txt

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org