# Cannot compile elasticsearch 0.90.3 with Maven. What JAR dependencies have been removed?

**URL:** https://discuss.elastic.co/t/cannot-compile-elasticsearch-0-90-3-with-maven-what-jar-dependencies-have-been-removed/13231
**Category:** Elasticsearch
**Created:** [August 15, 2013, 8:01pm UTC](https://discuss.elastic.co/t/cannot-compile-elasticsearch-0-90-3-with-maven-what-jar-dependencies-have-been-removed/13231 "2013-08-15T20:01:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Paolo\_Valladolid](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Paolo\_Valladolid](https://discuss.elastic.co/u/Paolo_Valladolid)
#### Post date: [August 15, 2013, 8:01pm UTC](https://discuss.elastic.co/t/cannot-compile-elasticsearch-0-90-3-with-maven-what-jar-dependencies-have-been-removed/13231/1 "2013-08-15T20:01:26Z")

</div>

We are trying to update our elasticsearch from 0.20.5 to 0.90.3. We are  
able to compile elasticsearch until version 0.90.0.

What is halting the compile is messing methods in SearchResponse.java and  
other response classes.

ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[146,17]  
cannot find symbol  
[ERROR] symbol: method hits()  
[ERROR] location: variable response of type  
org.elasticsearch.action.search.SearchResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[172,17]  
cannot find symbol  
[ERROR] symbol: method exists()  
[ERROR] location: variable response of type  
org.elasticsearch.action.get.GetResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[173,22]  
cannot find symbol  
[ERROR] symbol: method sourceAsMap()  
[ERROR] location: variable response of type  
org.elasticsearch.action.get.GetResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[187,20]  
cannot find symbol  
[ERROR] symbol: method exists()  
[ERROR] location: variable response of type  
org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[325,28]  
cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type  
org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[653,41]  
cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type  
org.elasticsearch.action.admin.indices.create.CreateIndexResponse  
[ERROR]  
/Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[688,17]  
cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type  
org.elasticsearch.action.admin.indices.create.CreateIndexResponse

According to Jarzilla, all of these classes are in elasticsearch-0.90.3.jar  
as expected. I'm guessing that one or more of these classes has a  
dependency on one or more jars that were previously packaged with the  
elasticsearch jar but are no longer included as of 0.90.0. So far I have  
tried adding dependency entries for all the Lucene jars to my Maven pom.xml  
file but these did not eliminate the compile errors.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [August 15, 2013, 8:32pm UTC](https://discuss.elastic.co/t/cannot-compile-elasticsearch-0-90-3-with-maven-what-jar-dependencies-have-been-removed/13231/2 "2013-08-15T20:32:49Z")

</div>

Some methods have been replaced.  
For example, hits() is now getHits().

You have to fix your code.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 15 août 2013 à 22:01, Paolo Valladolid [pvalladolid@gmail.com](mailto:pvalladolid@gmail.com) a écrit :

We are trying to update our elasticsearch from 0.20.5 to 0.90.3. We are able to compile elasticsearch until version 0.90.0.

What is halting the compile is messing methods in SearchResponse.java and other response classes.

ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[146,17] cannot find symbol  
[ERROR] symbol: method hits()  
[ERROR] location: variable response of type org.elasticsearch.action.search.SearchResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[172,17] cannot find symbol  
[ERROR] symbol: method exists()  
[ERROR] location: variable response of type org.elasticsearch.action.get.GetResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[173,22] cannot find symbol  
[ERROR] symbol: method sourceAsMap()  
[ERROR] location: variable response of type org.elasticsearch.action.get.GetResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[187,20] cannot find symbol  
[ERROR] symbol: method exists()  
[ERROR] location: variable response of type org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[325,28] cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[653,41] cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type org.elasticsearch.action.admin.indices.create.CreateIndexResponse  
[ERROR] /Users/pvalladolid/Documents/workspace/prss-2.0/cd-project/application/search/src/main/java/org/prss/contentdepot/search/service/ElasticSearchClient.java:[688,17] cannot find symbol  
[ERROR] symbol: method acknowledged()  
[ERROR] location: variable response of type org.elasticsearch.action.admin.indices.create.CreateIndexResponse

## According to Jarzilla, all of these classes are in elasticsearch-0.90.3.jar as expected. I'm guessing that one or more of these classes has a dependency on one or more jars that were previously packaged with the elasticsearch jar but are no longer included as of 0.90.0. So far I have tried adding dependency entries for all the Lucene jars to my Maven pom.xml file but these did not eliminate the compile errors.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:20am UTC](https://discuss.elastic.co/t/cannot-compile-elasticsearch-0-90-3-with-maven-what-jar-dependencies-have-been-removed/13231/3 "2017-07-06T02:20:57Z")

</div>


