Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] CollectRequest with scope

Hi,

when doing a RepositorySystem.collectDependencies(CollectRequest) call, you only get dependencies with a "compile" or "runtime" scope.
Is there a way to collect "provided" or any kind of dependencies?

        Dependency dependency = new Dependency(root, JavaScopes.PROVIDED);
        CollectRequest collectRequest = new CollectRequest(dependency, repositories);
        CollectResult collectResult = repositorySystem.collectDependencies(session, collectRequest);

With this code, i don't get the "provided" dependencies of the root artifact.

Thanks
Johannes
--
Johannes Dorn

Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Tel: +49 6151 2767092
http://www.codetrails.com

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940



Back to the top