All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.alexcojocaru.mojo.elasticsearch.v2.ElasticsearchArtifact Maven / Gradle / Ivy

Go to download

A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build

There is a newer version: 6.28
Show newest version
package com.github.alexcojocaru.mojo.elasticsearch.v2;

/**
 * @author Alex Cojocaru
 */
public class ElasticsearchArtifact
        extends AbstractArtifact
{
    public static final String DEFAULT_ELASTICSEARCH_VERSION = "5.0.0";
    public static final String ELASTICSEARCH_GROUPID = "org.elasticsearch.distribution.zip";
    public static final String ELASTICSEARCH_ARTIFACTID = "elasticsearch";
    public static final String ELASTICSEARCH_TYPE = "zip";

    public ElasticsearchArtifact()
    {
        this(DEFAULT_ELASTICSEARCH_VERSION);
    }

    public ElasticsearchArtifact(final String version)
    {
        this(ELASTICSEARCH_GROUPID, ELASTICSEARCH_ARTIFACTID, version, ELASTICSEARCH_TYPE);
    }

    public ElasticsearchArtifact(final String groupId, final String artifactId,
            final String version, final String type)
    {
        super(groupId, artifactId, version, null, type);
    }

    @Override
    public String getType()
    {
        return "zip";
    }

    @Override
    public String toString()
    {
        return "ElasticsearchArtifact[" + super.getArtifactCoordinates() + "]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy