Skip to content

Commit cb94da4

Browse files
committed
Fixed NoClassDefFound error with BigQuery JDBC Driver
1 parent c6721b9 commit cb94da4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,11 @@
14951495
<bigquery.classpath>${basedir}/src/main/extras/bigquery</bigquery.classpath>
14961496
</properties>
14971497
<dependencies>
1498+
<dependency>
1499+
<groupId>org.apache.avro</groupId>
1500+
<artifactId>avro</artifactId>
1501+
<version>1.11.0</version>
1502+
</dependency>
14981503
<dependency>
14991504
<groupId>com.google.api-client</groupId>
15001505
<artifactId>google-api-client</artifactId>
@@ -1560,6 +1565,16 @@
15601565
<artifactId>opencensus-contrib-http-util</artifactId>
15611566
<version>0.31.0</version>
15621567
</dependency>
1568+
<dependency>
1569+
<groupId>io.grpc</groupId>
1570+
<artifactId>grpc-core</artifactId>
1571+
<version>1.45.0</version>
1572+
</dependency>
1573+
<dependency>
1574+
<groupId>com.google.api.grpc</groupId>
1575+
<artifactId>grpc-google-cloud-bigquerystorage-v1</artifactId>
1576+
<version>2.12.0</version>
1577+
</dependency>
15631578
</dependencies>
15641579
<build>
15651580
<plugins>
@@ -1666,6 +1681,39 @@
16661681
<file>${bigquery.classpath}/google-cloud-bigquerystorage-2.12.0.jar</file>
16671682
</configuration>
16681683
</execution>
1684+
1685+
<execution>
1686+
<id>grpc-core</id>
1687+
<phase>initialize</phase>
1688+
<goals>
1689+
<goal>install-file</goal>
1690+
</goals>
1691+
<configuration>
1692+
<groupId>io.grpc</groupId>
1693+
<artifactId>grpc-core</artifactId>
1694+
<version>1.45.0</version>
1695+
<packaging>jar</packaging>
1696+
<file>${bigquery.classpath}/grpc-core-1.45.0.jar</file>
1697+
</configuration>
1698+
</execution>
1699+
1700+
1701+
<execution>
1702+
<id>grpc-google-cloud-bigquerystorage-v1</id>
1703+
<phase>initialize</phase>
1704+
<goals>
1705+
<goal>install-file</goal>
1706+
</goals>
1707+
<configuration>
1708+
<groupId>com.google.api.grpc</groupId>
1709+
<artifactId>grpc-google-cloud-bigquerystorage-v1</artifactId>
1710+
<version>2.12.0</version>
1711+
<packaging>jar</packaging>
1712+
<file>${bigquery.classpath}/grpc-google-cloud-bigquerystorage-v1-2.12.0.jar</file>
1713+
</configuration>
1714+
</execution>
1715+
1716+
16691717
</executions>
16701718
</plugin>
16711719
</plugins>

0 commit comments

Comments
 (0)