}
protected List<ArtifactResult> getDependencies(Artifact artifact) throws DependencyResolutionException {
DependencyFilter dependencyFilter = DependencyFilterUtils.classpathFilter(JavaScopes.COMPILE);
CollectRequest collectRequest = new CollectRequest();
collectRequest.setRoot( new Dependency( artifact, JavaScopes.COMPILE ) );
collectRequest.setRepositories(repositories);
DependencyRequest dependencyRequest = new DependencyRequest( collectRequest, dependencyFilter );
return system.resolveDependencies(session, dependencyRequest).getArtifactResults();
}