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 final String
    Message used when an invalid expression pattern is found.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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, org.eclipse.aether.RepositorySystemSession repositorySession, Function<org.apache.maven.project.MavenProject, R> convertFunction)
     
    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.

    Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

    enableLogging, getLogger, setupLogger, setupLogger, setupLogger

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INVALID_PATTERN_MESSAGE

      public static final String 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, org.eclipse.aether.RepositorySystemSession repositorySession, 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 test
      excludedGroupPattern - the exlcude group pattern
      excludedArtifactPattern - the exclude artifact pattenr
      Returns:
      true if the project is excludable, false otherwise