private ExceptionCollection collectDependencyManagementDependencies ( ProjectBuildingRequest buildingRequest , MavenProject project , List < DependencyNode > nodes , boolean aggregate ) { if ( skipDependencyManagement || project . getDependencyManagement ( ) == null ) { return null ; } ExceptionCollection exCol = null ; for ( org . apache . maven . model . Dependency dependency : project . getDependencyManagement ( ) . getDependencies ( ) ) { try { nodes . add ( toDependencyNode ( buildingRequest , null , dependency ) ) ; } catch ( ArtifactResolverException ex ) { getLog ( ) . debug ( String . format ( "Aggregate : %s" , aggregate ) ) ; if ( exCol == null ) { exCol = new ExceptionCollection ( ) ; } exCol . addException ( ex ) ; } } return exCol ; }
Collect dependencies from the dependency management section .