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
Fields Modifier and Type Field Description static StringINVALID_PATTERN_MESSAGEMessage used when an invalid expression pattern is found.
-
Constructor Summary
Constructors Constructor Description DependenciesResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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)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.
-
-
-
Field Detail
-
INVALID_PATTERN_MESSAGE
public static final String INVALID_PATTERN_MESSAGE
Message used when an invalid expression pattern is found.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-