Package de.mnl.osgi.bnd.maven
Class BndModelResolver
- java.lang.Object
-
- de.mnl.osgi.bnd.maven.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 bndMavenRepository
as backend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BndModelResolver.FileModelSource
The Class FileModelSource.
-
Constructor Summary
Constructors Constructor Description BndModelResolver(aQute.maven.provider.MavenRepository bndRepository, aQute.service.reporter.Reporter reporter)
Instantiates a new bnd model resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRepository(org.apache.maven.model.Repository repository)
void
addRepository(org.apache.maven.model.Repository repository, boolean replace)
org.apache.maven.model.resolution.ModelResolver
newCopy()
org.apache.maven.model.building.ModelSource
resolveModel(String groupId, String artifactId, String version)
org.apache.maven.model.building.ModelSource
resolveModel(org.apache.maven.model.Dependency dependency)
org.apache.maven.model.building.ModelSource
resolveModel(org.apache.maven.model.Parent parent)
-
-
-
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 repositoryreporter
- 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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.maven.model.resolution.ModelResolver
-
-