# org.locationtech.Spatial4j dependency missing in ES 6.3.0?

**URL:** <https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718>\
**Category:** Elasticsearch\
**Created:** [July 5, 2018, 1:02pm UTC](https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718 "2018-07-05T13:02:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 5, 2018, 1:02pm UTC](https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718/1 "2018-07-05T13:02:40Z")

</div>

I have upgraded from 6.1.3 to 6.3.0.

Code by using 6.1.3:

```
final CircleBuilder circleBuilder = ShapeBuilders.newCircleBuilder();
circleBuilder.radius(String.valueOf(radius));
circleBuilder.center(longitude, latitude);

```

Code by Using 6.3.0:

```
final CircleBuilder circleBuilder = new CircleBuilder();
circleBuilder.radius(String.valueOf(radius));
circleBuilder.center(longitude, latitude);

```

CircleBuilder is internally using _org.locationtech.jts.geom.Coordinate_ class.

When i update my maven dependency to 6.3.0. Eclipse gives following error on 3rd line:

> The type org.locationtech.jts.geom.Coordinate cannot be resolved. It is indirectly referenced from required .class files

When i add elasticsearch dependency it should automatically download the dependent things. I am not sure whats happening here.  
Is anybody facing same issue ?

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 5, 2018, 1:16pm UTC](https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718/2 "2018-07-05T13:16:24Z")

</div>

Just found that its an optional dependency. When i run _mvn dependency:tree_ this spatial4j does not show up in the tree. Still need help.

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 5, 2018, 3:07pm UTC](https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718/3 "2018-07-05T15:07:29Z")

</div>

I have added optional dependencies to my pom and the error has gone.

---

<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:** [August 2, 2018, 3:07pm UTC](https://discuss.elastic.co/t/org-locationtech-spatial4j-dependency-missing-in-es-6-3-0/138718/4 "2018-08-02T15:07:33Z")

</div>

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