public class BootstrapAppModelResolver extends Object implements AppModelResolver
| Modifier and Type | Field and Description |
|---|---|
protected MavenArtifactResolver |
mvn |
| Constructor and Description |
|---|
BootstrapAppModelResolver(MavenArtifactResolver mvn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos) |
String |
getLatestVersion(AppArtifact appArtifact,
String upToVersion,
boolean inclusive)
Returns the latest version for the artifact up to the version specified.
|
String |
getNextVersion(AppArtifact appArtifact,
String upToVersion,
boolean inclusive)
Returns the next version for the artifact which is not later than the version specified.
|
void |
install(AppArtifact appArtifact,
Path localPath) |
List<String> |
listLaterVersions(AppArtifact appArtifact,
String upToVersion,
boolean inclusive)
Lists versions released later than the version of the artifact up to the version
specified or all the later versions in case the up-to-version is not provided.
|
void |
relink(AppArtifact artifact,
Path path)
(Re-)links an artifact to a path.
|
Path |
resolve(AppArtifact artifact)
Resolves an artifact.
|
List<org.eclipse.aether.repository.RemoteRepository> |
resolveArtifactRepos(AppArtifact appArtifact) |
AppModel |
resolveModel(AppArtifact coords)
Collect dependencies that are required at runtime, excluding test and optional depependencies.
|
AppModel |
resolveModel(AppArtifact root,
List<AppDependency> coords)
Collects artifact dependencies merging the provided direct dependencies in
|
protected final MavenArtifactResolver mvn
public BootstrapAppModelResolver(MavenArtifactResolver mvn) throws AppModelResolverException
AppModelResolverExceptionpublic void addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos)
public void relink(AppArtifact artifact, Path path) throws AppModelResolverException
AppModelResolverrelink in interface AppModelResolverartifact - an artifact to (re-)link to the pathpath - local path to the artifactAppModelResolverException - in case of a failurepublic Path resolve(AppArtifact artifact) throws AppModelResolverException
AppModelResolverresolve in interface AppModelResolverartifact - artifact to resolveAppModelResolverException - in case of a failurepublic AppModel resolveModel(AppArtifact coords) throws AppModelResolverException
AppModelResolverresolveModel in interface AppModelResolverAppModelResolverExceptionpublic AppModel resolveModel(AppArtifact root, List<AppDependency> coords) throws AppModelResolverException
AppModelResolverresolveModel in interface AppModelResolverroot - root artifactcoords - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failurepublic List<String> listLaterVersions(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
AppModelResolverlistLaterVersions in interface AppModelResolverappArtifact - artifact to list the versions forAppModelResolverException - in case of a failurepublic String getNextVersion(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
AppModelResolvergetNextVersion in interface AppModelResolverappArtifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failurepublic String getLatestVersion(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
AppModelResolvergetLatestVersion in interface AppModelResolverappArtifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failurepublic List<org.eclipse.aether.repository.RemoteRepository> resolveArtifactRepos(AppArtifact appArtifact) throws AppModelResolverException
AppModelResolverExceptionpublic void install(AppArtifact appArtifact, Path localPath) throws AppModelResolverException
AppModelResolverExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.