You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Brian E. Fox" <br...@reply.infinity.nu> on 2007/10/01 15:23:49 UTC

RE: indiscriminate dependencies ...

Try mvn dependency:analyze

It will tell you when you are not using dependencies and also when you
haven't declared things you are directly using.

-----Original Message-----
From: Giovanni Azua [mailto:bravegag@swissonline.ch] 
Sent: Sunday, September 30, 2007 8:27 AM
To: 'Maven Users List'
Subject: indiscriminate dependencies ...

Hi all,

I get very frustrated when I would like to quickly build some project X
and
I see maven downloading half internet just because one of the developers
of
project X thought that some of the dependencies might be needed at some
point but not now. 

This also happens when you develop project A that depend on B but then
someday you don't depend on B anymore and you forget getting rid of the
dependency entry B in A's pom.xml

I know it is not Maven's fault. It is just that maven makes it very easy
to
depend on anything. Is there any way perhaps some fancy plugin that will
prevent maven from downloading every little single dependency but only
those
actually used by the project X ... kind of lazy dependency resolution,
so
developers suggest but do not command what dependencies are required by
the
build ...

You get the idea.

regards,
Giovanni



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


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