I have two dependencies in my pom.xml:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.0-beta1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore-nio</artifactId>
<version>4.0-beta1</version>
</dependency>
httpcore-nio
directly requiers httpcore
so i do not need the dependency and could remove it.
Is there a way to remove or at least detect, unesseary dependencies automaticaly, for all dependencies, and their coressponding dependency tree?