Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Athena JDBC Driver 2.0.7 in maven repo?

From what I've been able to figure out, the recommended maven dependency for the Amazon Athena JDBC driver is com.syncron.amazonaws, simba-athena-jdbc-driver. The latest version I've been able to find in Maven repo is:

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

According to the documentation the latest driver version is 2.0.7, which appears to contain some very useful features such as streaming results rather than paging through them.

Is the 2.0.7 version available in maven repository or do I need to download and install it manually?

like image 863
marthursson Avatar asked Oct 27 '25 08:10

marthursson


1 Answers

As @Karol Dowbecki says, the artifact is not present in the repo at the current time. For anyone else looking for a simple solution (in absence of a local maven mirror): What I ended up doing is downloading the binary, placing it in a /lib directory in my source tree and automatically installing it with the install-plugin from the root 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>  
like image 57
marthursson Avatar answered Oct 28 '25 22:10

marthursson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!