private < T extends MavenArtifactDescriptor > T getMavenArtifactDescriptor ( Coordinates coordinates , ArtifactResolver artifactResolver , Class < T > type , Scanner scanner ) { MavenArtifactDescriptor mavenArtifactDescriptor = artifactResolver . resolve ( coordinates , scanner . getContext ( ) ) ; return scanner . getContext ( ) . getStore ( ) . addDescriptorType ( mavenArtifactDescriptor , type ) ; }
Returns a resolved maven artifact descriptor for the given coordinates .