org.locationtech.Spatial4j dependency missing in ES 6.3.0?


#1

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 ?


#2

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.


#3

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


(system) #4

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