maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Gold <russell.g...@oracle.com>
Subject Re: Finding transitive dependencies imported into our code
Date Fri, 07 Aug 2015 11:38:57 GMT
mvn -X compile

Look at the listing; it will show you all of the dependencies.

> On Aug 7, 2015, at 7:14 AM, James Green <james.mk.green@gmail.com> wrote:
> 
> See in-line
> 
> On 7 August 2015 at 12:05, Björn Raupach <raupach.bjoern@googlemail.com>
> wrote:
> 
>> hi,
>> 
>>> On 07 Aug 2015, at 12:33, James Green <james.mk.green@gmail.com> wrote:
>>> 
>>> Hi,
>>> 
>>> I want to know about any imports within our package base that are
>> resolved
>>> by a transitive dependency.
>>> 
>>> There must be a command or tool for this - I'm not sure I've ever seen
>> one
>>> though?
>> 
>> Maybe this helps: mvn dependency:resolve
>> 
> 
> Nope. Allow me to describe my use-case.
> 
> I have been given a source code project. It has a dependency that we have
> no clear need for. I remove that dependency. The build now fails because
> our sources import something the now-removed dependency transitively
> provided.
> 
> I want to know I don't have any other source-code dependencies not listed
> in <dependencies>.
> 
> I can not see such a command listed under
> https://maven.apache.org/plugins/maven-dependency-plugin/
> 
> Thanks,
> 
> James


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


Mime
View raw message