This triggers loading ALL the versions. Even an exclusion in dependencyManagement like
<dependency>
<groupId>org.opensearch.client</groupId>
<artifactId>opensearch-java</artifactId>
<version>2.4.0</version>
<!-- because the aws guys use an open range, you need to exclude this and optionally redeclare -->
<exclusions>
<exclusion>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sdk-core</artifactId>
</exclusion>
<exclusion>
<groupId>software.amazon.awssdk</groupId>
<artifactId>auth</artifactId>
</exclusion>
</exclusions>
</dependency>
Opensearch-java has one of those open ended dependencies
This triggers loading ALL the versions. Even an exclusion in dependencyManagement like
doesn't work