Search in sources :

Example 1 with DefaultArtifact

use of io.airlift.resolver.DefaultArtifact in project presto by prestodb.

the class PluginManager method buildClassLoaderFromCoordinates.

private URLClassLoader buildClassLoaderFromCoordinates(String coordinates) throws Exception {
    Artifact rootArtifact = new DefaultArtifact(coordinates);
    List<Artifact> artifacts = resolver.resolveArtifacts(rootArtifact);
    return createClassLoader(artifacts, rootArtifact.toString());
}
Also used : Artifact(org.sonatype.aether.artifact.Artifact) DefaultArtifact(io.airlift.resolver.DefaultArtifact) DefaultArtifact(io.airlift.resolver.DefaultArtifact)

Aggregations

DefaultArtifact (io.airlift.resolver.DefaultArtifact)1 Artifact (org.sonatype.aether.artifact.Artifact)1