compass icon indicating copy to clipboard operation
compass copied to clipboard

compile failed.

Open donggong opened this issue 2 years ago • 5 comments

程序包org.elasticsearch.xcontent不存在

donggong avatar Apr 06 '23 01:04 donggong

Please check the maven configuration and confirm whether the elasticsearch package has been downloaded.

nilnon avatar Apr 06 '23 02:04 nilnon

Please check the maven configuration and confirm whether the elasticsearch package has been downloaded.

The spring-boot-starter-parentversion used in the current project is 2.7.8. and The elasticsearch version in 2.7.8 is 7.17.8. noticeable,org.elasticsearch.xcontent.XContentType is removed from elasticSearch ver 7.17.3.so, should we consider useing a more suitable version? such as 2.7.0?

yuehan-mm avatar Apr 06 '23 12:04 yuehan-mm

org.elasticsearch.xcontent.XContentType is removed from elasticSearch ver 7.17.3.

org.elasticsearch.xcontent.XContentType exists in elasticsearch 7.17.8, https://github.com/elastic/elasticsearch/blob/v7.17.8/libs/x-content/src/main/java/org/elasticsearch/xcontent/XContentType.java

程序包org.elasticsearch.xcontent不存在

I had the same problem and it was fixed after deleting org\elasticsearch\elasticsearch\7.17.8 in the local repository.

wForget avatar Apr 06 '23 12:04 wForget

Please check the maven configuration and confirm whether the elasticsearch package has been downloaded.

The spring-boot-starter-parentversion used in the current project is 2.7.8. and The elasticsearch version in 2.7.8 is 7.17.8. noticeable,org.elasticsearch.xcontent.XContentType is removed from elasticSearch ver 7.17.3.so, should we consider useing a more suitable version? such as 2.7.0?

@yuehan-mm Thanks for your feedback, we will upgrade the version of Elasticsearch to the latest, and you can considerate @wForget 's solution, just clean the elasticearch package locally in your repository

zebozhuang avatar Apr 06 '23 12:04 zebozhuang

+1 same problem

Narcasserun avatar Apr 07 '23 01:04 Narcasserun