Athena JDBC Maven 仓库中的驱动程序 2.0.7?

Athena JDBC Driver 2.0.7 in maven repo?

据我所知,Amazon Athena JDBC 驱动程序的推荐 Maven 依赖项是 com.syncron.amazonaws、simba-athena-jdbc-驱动程序。我在 Maven 仓库中找到的最新版本是:

<dependency>
   <groupId>com.syncron.amazonaws</groupId>
   <artifactId>simba-athena-jdbc-driver</artifactId>
   <version>2.0.2</version>
</dependency>

根据 documentation 最新的驱动程序版本是 2.0.7,它似乎包含一些非常有用的功能,例如流式处理结果而不是分页。

maven仓库中有2.0.7版本吗,还是需要手动下载安装?

2.0.7 在 public Maven 存储库中不可用,例如专家中心。

我会从 Using Athena with the JDBC Driver page and install locally with mvn install:install-file 下载它。

正如 @Karol Dowbecki 所说,工件目前不在回购中。对于寻找简单解决方案的其他人(没有本地 maven 镜像):我最终做的是下载二进制文件,将其放在源代码树中的 /lib 目录中,并使用 install- 自动安装它来自根 pom 的插件:

<plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-install-plugin</artifactId>
            <inherited>false</inherited>
            <executions>
                <execution>
                    <id>install1</id>
                    <phase>validate</phase>
                    <goals>
                        <goal>install-file</goal>
                    </goals>
                    <configuration>
                        <groupId>com.syncron.amazonaws</groupId>
                        <artifactId>simba-athena-jdbc-driver</artifactId>
                        <version>${athena-driver.version}</version>
                        <packaging>jar</packaging>
                        <file>${basedir}/lib/AthenaJDBC42_2.0.7.jar</file>
                    </configuration>
                </execution>
            </executions>
        </plugin>
</plugins>