Class DependenciesResolver
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.wildfly.maven.plugins.licenses.DependenciesResolver
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
@Singleton
public class DependenciesResolver
extends org.codehaus.plexus.logging.AbstractLogEnabled
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage used when an invalid expression pattern is found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadDependenciesAndConvertThem(org.apache.maven.project.MavenProject project, MavenProjectDependenciesConfiguration configuration, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, SortedMap<String, org.apache.maven.project.MavenProject> cache, Function<org.apache.maven.project.MavenProject, R> convertFunction) protected booleanmatchesExcluded(org.apache.maven.artifact.Artifact project, Pattern excludedGroupPattern, Pattern excludedArtifactPattern) Tests if the given project can be excluded against a groupdId pattern and a artifact pattern.Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
INVALID_PATTERN_MESSAGE
Message used when an invalid expression pattern is found.- See Also:
-
-
Constructor Details
-
DependenciesResolver
public DependenciesResolver()
-
-
Method Details
-
loadDependenciesAndConvertThem
public <R> SortedMap<String,R> loadDependenciesAndConvertThem(org.apache.maven.project.MavenProject project, MavenProjectDependenciesConfiguration configuration, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, SortedMap<String, org.apache.maven.project.MavenProject> cache, Function<org.apache.maven.project.MavenProject, R> convertFunction) -
matchesExcluded
protected boolean matchesExcluded(org.apache.maven.artifact.Artifact project, Pattern excludedGroupPattern, Pattern excludedArtifactPattern) Tests if the given project can be excluded against a groupdId pattern and a artifact pattern.- Parameters:
project- the project to testexcludedGroupPattern- the exlcude group patternexcludedArtifactPattern- the exclude artifact pattenr- Returns:
trueif the project is excludable,falseotherwise
-