public class SimpleModelResolver extends Object implements org.apache.maven.model.resolution.ModelResolver
Constructor and Description |
---|
SimpleModelResolver(org.eclipse.aether.RepositorySystem system,
org.eclipse.aether.RepositorySystemSession session,
List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)
Creates a model resolver to assist building of dependency POMs.
|
Modifier and Type | Method and 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(org.apache.maven.model.Dependency dependency) |
org.apache.maven.model.building.ModelSource |
resolveModel(org.apache.maven.model.Parent parent) |
org.apache.maven.model.building.ModelSource |
resolveModel(String groupId,
String artifactId,
String version) |
public SimpleModelResolver(org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)
system
- a RepositorySystem
session
- a RepositorySystemSession
remoteRepositories
- remote repositories to use for resolution.public void addRepository(org.apache.maven.model.Repository repository) throws org.apache.maven.model.resolution.InvalidRepositoryException
addRepository
in interface org.apache.maven.model.resolution.ModelResolver
org.apache.maven.model.resolution.InvalidRepositoryException
public org.apache.maven.model.resolution.ModelResolver newCopy()
newCopy
in interface org.apache.maven.model.resolution.ModelResolver
public org.apache.maven.model.building.ModelSource resolveModel(String groupId, String artifactId, String version) throws org.apache.maven.model.resolution.UnresolvableModelException
resolveModel
in interface org.apache.maven.model.resolution.ModelResolver
org.apache.maven.model.resolution.UnresolvableModelException
public org.apache.maven.model.building.ModelSource resolveModel(org.apache.maven.model.Parent parent) throws org.apache.maven.model.resolution.UnresolvableModelException
resolveModel
in interface org.apache.maven.model.resolution.ModelResolver
org.apache.maven.model.resolution.UnresolvableModelException
public void addRepository(org.apache.maven.model.Repository repository, boolean replace) throws org.apache.maven.model.resolution.InvalidRepositoryException
addRepository
in interface org.apache.maven.model.resolution.ModelResolver
org.apache.maven.model.resolution.InvalidRepositoryException
public org.apache.maven.model.building.ModelSource resolveModel(org.apache.maven.model.Dependency dependency) throws org.apache.maven.model.resolution.UnresolvableModelException
resolveModel
in interface org.apache.maven.model.resolution.ModelResolver
org.apache.maven.model.resolution.UnresolvableModelException
Copyright © 2024 GATE. All rights reserved.