# How about import the Graph API in a maven Java project

**URL:** https://discuss.elastic.co/t/how-about-import-the-graph-api-in-a-maven-java-project/138328
**Category:** Elasticsearch
**Created:** [July 3, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-about-import-the-graph-api-in-a-maven-java-project/138328 "2018-07-03T08:12:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![guofengzh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guofengzh/32/32900_2.png) [@guofengzh](https://discuss.elastic.co/u/guofengzh)
#### Post date: [July 3, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-about-import-the-graph-api-in-a-maven-java-project/138328/1 "2018-07-03T08:12:15Z")

</div>

Hi,

I am trying ElasticSearch Graph in a java project. I use 6.3.0. I try to make the following sample works,

I have the dependency on org.elasticsearch.client:x-pack-transport:6.3.0 in pom.xml, but this does not import org.elasticsearch.xpack and org.elasticsearch.xpack.graph.

What do I miss in pom.xml?

Thanks for your help very much.

Guofeng

---

<div class="post-metadata">

### Author: ![guofengzh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guofengzh/32/32900_2.png) [@guofengzh](https://discuss.elastic.co/u/guofengzh)
#### Post date: [July 3, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-about-import-the-graph-api-in-a-maven-java-project/138328/2 "2018-07-03T08:12:51Z")

</div>

sorry, missing the link:

> <https://gist.github.com/markharwood/f9e955f52908129ef364446cfec0a65e>
>
> There are more than three files. show original

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 31, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-about-import-the-graph-api-in-a-maven-java-project/138328/3 "2018-07-31T08:12:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
