Elasticsearch: mapper-extras v7.4.0 dependency missing from maven central

Created on 2 Oct 2019  路  13Comments  路  Source: elastic/elasticsearch

org.elasticsearch.plugin:mapper-extras:7.4.0 appears not to be available in maven central
but is referenced from org.elasticsearch.client:elasticsearch-rest-high-level-client:7.4.0

:CorFeatureJava High Level REST Client >bug

Most helpful comment

Thanks to @mgreau the artifact for 7.4.0 should be available now ! Please reopen if any problem arises.

All 13 comments

Same for me

Pinging @elastic/es-core-features (:Core/Features/Java High Level REST Client)

Thanks for reporting. The dependency was added without the publication of the client jar. I opened https://github.com/elastic/elasticsearch/pull/47430 to fix this and make it available for the next official release (7.4.1 or 7.5.0). Sorry for the trouble.

Does this mean that 7.4.0 is unusable?

EDIT: At least, if the high level rest client is used.

Does this mean that 7.4.0 is unusable?

No, that means that you cannot reference any of the QueryBuilder that the mapper-extras module exposes when using the high level rest client. The mapper-extras was not exposed in previous version so this is also not a regression, we could fix the doc to remove any mention of the mapper-extras queries in 7.4.0 to avoid confusion.

So anyone can more or less safely exclude the dependency from their build as long as they don't use the new QueryBuilder features and are careful to remove the exclusion later.


For anyone else who comes to this PR, the feature in question is listed in https://www.elastic.co/guide/en/elasticsearch/reference/7.4/release-notes-7.4.0.html:

Add mapper-extras and the RankFeatureQuery in the hlrc #43713 (issue: #43634)

Details on the RankFeatureQuery - https://www.elastic.co/guide/en/elasticsearch/reference/7.4/query-dsl-rank-feature-query.html

Yes that's unfortunate but https://github.com/elastic/elasticsearch/pull/47430 will solve this for the next official release.

Wasn't that possible to publish the missing artefact without changing anything else?

Wasn't that possible to publish the missing artefact without changing anything else?

I am not sure since mapper-extras was not in the previous versions so there's no regression here. Users that want to use classes from this jar will need to wait one more release so that's unfortunate but not a blocker ?

that's unfortunate but not a blocker

Yeah sure. We can use the 7.3.2 client with 7.4.0 server. Or as mentioned exclude manually the missing jar:

<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>elasticsearch-rest-high-level-client</artifactId>
    <version>7.4.0</version>
    <!-- TODO Remove this with 7.4.1 -->
    <exclusions>
        <exclusion>
            <groupId>org.elasticsearch.plugin</groupId>
            <artifactId>mapper-extras</artifactId>
        </exclusion>
    </exclusions>
</dependency>

I was just curious why we can't "just" upload, even manually the missing jar as this jar has been generated I guess for 7.4.0 but was just not uploaded to maven central.

I thought that the dependency was optional but it's not, the exclusion is required, sorry for the confusion and thanks for chiming in @dadoonet . We're now looking at manually publishing this jar for 7.4.0 and we'll update this issue soon.

Thanks to @mgreau the artifact for 7.4.0 should be available now ! Please reopen if any problem arises.

I can confirm that it works very well now. I'm closing the issue then.

Was this page helpful?
0 / 5 - 0 ratings