Class BndModelResolver

  • All Implemented Interfaces:
    Cloneable, org.apache.maven.model.resolution.ModelResolver

    public class BndModelResolver
    extends Object
    implements org.apache.maven.model.resolution.ModelResolver, Cloneable
    Resolves (raw) model requests using a bnd MavenRepository as backend.
    • Constructor Detail

      • BndModelResolver

        public BndModelResolver​(aQute.maven.provider.MavenRepository bndRepository,
                                aQute.service.reporter.Reporter reporter)
        Instantiates a new bnd model resolver.
        Parameters:
        bndRepository - the backing repository
        reporter - the reporter
    • Method Detail

      • resolveModel

        public org.apache.maven.model.building.ModelSource resolveModel​(String groupId,
                                                                        String artifactId,
                                                                        String version)
                                                                 throws org.apache.maven.model.resolution.UnresolvableModelException
        Specified by:
        resolveModel in interface org.apache.maven.model.resolution.ModelResolver
        Throws:
        org.apache.maven.model.resolution.UnresolvableModelException
      • resolveModel

        public org.apache.maven.model.building.ModelSource resolveModel​(org.apache.maven.model.Parent parent)
                                                                 throws org.apache.maven.model.resolution.UnresolvableModelException
        Specified by:
        resolveModel in interface org.apache.maven.model.resolution.ModelResolver
        Throws:
        org.apache.maven.model.resolution.UnresolvableModelException
      • resolveModel

        public org.apache.maven.model.building.ModelSource resolveModel​(org.apache.maven.model.Dependency dependency)
                                                                 throws org.apache.maven.model.resolution.UnresolvableModelException
        Specified by:
        resolveModel in interface org.apache.maven.model.resolution.ModelResolver
        Throws:
        org.apache.maven.model.resolution.UnresolvableModelException
      • addRepository

        public void addRepository​(org.apache.maven.model.Repository repository)
                           throws org.apache.maven.model.resolution.InvalidRepositoryException
        Specified by:
        addRepository in interface org.apache.maven.model.resolution.ModelResolver
        Throws:
        org.apache.maven.model.resolution.InvalidRepositoryException
      • addRepository

        public void addRepository​(org.apache.maven.model.Repository repository,
                                  boolean replace)
                           throws org.apache.maven.model.resolution.InvalidRepositoryException
        Specified by:
        addRepository in interface org.apache.maven.model.resolution.ModelResolver
        Throws:
        org.apache.maven.model.resolution.InvalidRepositoryException
      • newCopy

        public org.apache.maven.model.resolution.ModelResolver newCopy()
        Specified by:
        newCopy in interface org.apache.maven.model.resolution.ModelResolver