private void _addProfileDependencies ( MavenProfileDescriptor profileDescriptor , List < Dependency > dependencies , ScannerContext scannerContext ) { for ( Dependency dependency : dependencies ) { MavenArtifactDescriptor dependencyArtifactDescriptor = getMavenArtifactDescriptor ( dependency , scannerContext ) ; Store store = scannerContext . getStore ( ) ; ProfileDeclaresDependencyDescriptor profileDependsOnDescriptor = store . create ( profileDescriptor , ProfileDeclaresDependencyDescriptor . class , dependencyArtifactDescriptor ) ; profileDependsOnDescriptor . setOptional ( dependency . isOptional ( ) ) ; profileDependsOnDescriptor . setScope ( dependency . getScope ( ) ) ; } }
Adds information about profile dependencies .