diff options
Diffstat (limited to 'catalog-dao')
-rw-r--r-- | catalog-dao/pom.xml | 7 | ||||
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/es/ElasticSearchClient.java | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/catalog-dao/pom.xml b/catalog-dao/pom.xml index 2a2e02ae81..940047db9f 100644 --- a/catalog-dao/pom.xml +++ b/catalog-dao/pom.xml @@ -62,13 +62,6 @@ Modifications copyright (c) 2018 Nokia <scope>provided</scope> </dependency> - <dependency> - <groupId>org.elasticsearch.plugin</groupId> - <artifactId>shield</artifactId> - <version>${elastic-search.version}</version> - <scope>provided</scope> - </dependency> - <!-- SPRING --> <dependency> <groupId>org.springframework</groupId> diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/es/ElasticSearchClient.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/es/ElasticSearchClient.java index 47ce679c29..1547d01ac2 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/es/ElasticSearchClient.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/es/ElasticSearchClient.java @@ -27,7 +27,6 @@ import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; import org.elasticsearch.node.Node; import org.elasticsearch.node.NodeBuilder; -import org.elasticsearch.shield.ShieldPlugin; import org.openecomp.sdc.common.log.wrappers.Logger; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -99,7 +98,7 @@ public class ElasticSearchClient { } if (isTransportClient()) { log.info("******* ElasticSearchClient type is Transport Client *****"); - TransportClient transportClient = TransportClient.builder().addPlugin(ShieldPlugin.class).settings(settings) + TransportClient transportClient = TransportClient.builder().settings(settings) .build(); String[] nodesArray = transportClient.settings().getAsArray("transport.client.initial_nodes"); |