public class BaseResolver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
BaseResolver.IProcessor<T> |
(package private) static class |
BaseResolver.ResultType |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<org.eclipse.aether.artifact.Artifact> |
artifactComparator |
static java.lang.String |
CORENLP_VERSION |
static java.util.Map<java.lang.String,java.lang.String[]> |
MAP |
static java.lang.String |
PARSER_VERSION |
private java.util.List<org.eclipse.aether.repository.RemoteRepository> |
remoteRepos |
private org.eclipse.aether.RepositorySystemSession |
repoSession |
private org.eclipse.aether.RepositorySystem |
repoSystem |
private BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> |
toFile |
private BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> |
toId |
private BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> |
toPath |
Constructor and Description |
---|
BaseResolver(org.eclipse.aether.RepositorySystem repoSystem,
org.eclipse.aether.RepositorySystemSession repoSession,
java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos) |
Modifier and Type | Method and Description |
---|---|
private void |
addSlf4jImpl(java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> dependenciesMap) |
java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> |
getDependencies(java.lang.String version,
java.lang.String scope)
Get dependencies
|
java.util.Properties |
getProperties(java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> dependenciesMap,
BaseResolver.ResultType resultType)
Get properties
|
org.eclipse.aether.artifact.Artifact |
resolve1(org.eclipse.aether.artifact.Artifact artifact) |
java.util.Collection<org.eclipse.aether.artifact.Artifact> |
resolveTransitive(java.lang.String scope,
java.lang.String... artifactCoords) |
void |
run(java.lang.String version,
java.lang.String scope,
java.lang.String resultTypeStr,
java.lang.String resultFile) |
public static final java.lang.String CORENLP_VERSION
public static final java.lang.String PARSER_VERSION
public static final java.util.Map<java.lang.String,java.lang.String[]> MAP
private static final java.util.Comparator<org.eclipse.aether.artifact.Artifact> artifactComparator
private final org.eclipse.aether.RepositorySystem repoSystem
private final org.eclipse.aether.RepositorySystemSession repoSession
private final java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos
private final BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> toId
private final BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> toFile
private final BaseResolver.IProcessor<org.eclipse.aether.artifact.Artifact> toPath
public BaseResolver(org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession repoSession, java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos)
public java.util.Collection<org.eclipse.aether.artifact.Artifact> resolveTransitive(java.lang.String scope, java.lang.String... artifactCoords) throws org.eclipse.aether.resolution.DependencyResolutionException, org.eclipse.aether.collection.DependencyCollectionException
org.eclipse.aether.resolution.DependencyResolutionException
org.eclipse.aether.collection.DependencyCollectionException
public org.eclipse.aether.artifact.Artifact resolve1(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.ArtifactResolutionException
public java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> getDependencies(java.lang.String version, java.lang.String scope) throws org.eclipse.aether.resolution.DependencyResolutionException, org.eclipse.aether.collection.DependencyCollectionException, org.eclipse.aether.resolution.ArtifactResolutionException
version
- versionscope
- phase (compile,runtime)org.eclipse.aether.collection.DependencyCollectionException
- dependency collection exceptionorg.eclipse.aether.resolution.DependencyResolutionException
- dependency resolution exceptionorg.eclipse.aether.resolution.ArtifactResolutionException
public java.util.Properties getProperties(java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> dependenciesMap, BaseResolver.ResultType resultType)
dependenciesMap
- map of dependenciesresultType
- result typeprivate void addSlf4jImpl(java.util.Map<java.lang.String,java.util.Collection<org.eclipse.aether.artifact.Artifact>> dependenciesMap) throws org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.ArtifactResolutionException
public void run(java.lang.String version, java.lang.String scope, java.lang.String resultTypeStr, java.lang.String resultFile) throws org.eclipse.aether.resolution.DependencyResolutionException, org.eclipse.aether.collection.DependencyCollectionException, org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.DependencyResolutionException
org.eclipse.aether.collection.DependencyCollectionException
org.eclipse.aether.resolution.ArtifactResolutionException