Class DependenciesResolver

  • All Implemented Interfaces:
    org.codehaus.plexus.logging.LogEnabled

    @Singleton
    public class DependenciesResolver
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    • 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
    • Constructor Detail

      • DependenciesResolver

        public DependenciesResolver()
    • 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 test
        excludedGroupPattern - the exlcude group pattern
        excludedArtifactPattern - the exclude artifact pattenr
        Returns:
        true if the project is excludable, false otherwise