use of com.github.alexcojocaru.mojo.elasticsearch.v2.step.resolveartifact.ElasticsearchArtifactResolver in project elasticsearch-maven-plugin by alexcojocaru.
the class ResolveElasticsearchStep method execute.
@Override
public void execute(InstanceConfiguration config) {
File unpackDirectory = null;
try {
File artifact = new ElasticsearchArtifactResolver(config.getClusterConfiguration()).resolve();
unpackDirectory = unpackToElasticsearchDirectory(artifact, config);
setupElasticsearchConf(config);
} catch (ArtifactException | IOException e) {
throw new RuntimeException(e);
} finally {
cleanUp(unpackDirectory, config.getClusterConfiguration());
}
}
Aggregations