iamsmkr opened a new issue, #199:
URL: https://github.com/apache/arrow-cookbook/issues/199

   I thought of trying the example from the cookbook java 
(https://arrow.apache.org/cookbook/java/flight.html) but I keep getting the 
following exception when building the project
   ```
   Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final 
   ```
   
   Since the cookbook doesn't list out the dependencies explictly in the doc I 
copied from 
https://github.com/apache/arrow/blob/master/java/flight/flight-integration-tests/pom.xml.
 Although it would be really nice if the docs specify the dependencies clearly.
   
   My pom.xml look is like this:
   ```xml
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
       <modelVersion>4.0.0</modelVersion>
   
       <groupId>com.iamsmkr</groupId>
       <artifactId>arrow-flight-java</artifactId>
       <version>1.0-SNAPSHOT</version>
   
       <dependencies>
   
           <dependency>
               <groupId>org.apache.arrow</groupId>
               <artifactId>arrow-vector</artifactId>
               <version>8.0.0</version>
           </dependency>
   
           <dependency>
               <groupId>org.apache.arrow</groupId>
               <artifactId>arrow-memory-core</artifactId>
               <version>8.0.0</version>
           </dependency>
   
           <dependency>
               <groupId>org.apache.arrow</groupId>
               <artifactId>flight-core</artifactId>
               <version>8.0.0</version>
           </dependency>
   
           <dependency>
               <groupId>org.apache.arrow</groupId>
               <artifactId>flight-sql</artifactId>
               <version>8.0.0</version>
           </dependency>
   
           <dependency>
               <groupId>com.google.protobuf</groupId>
               <artifactId>protobuf-java</artifactId>
               <version>3.20.1</version>
           </dependency>
   
           <dependency>
               <groupId>commons-cli</groupId>
               <artifactId>commons-cli</artifactId>
               <version>1.5.0</version>
           </dependency>
   
           <dependency>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-api</artifactId>
               <version>1.7.36</version>
           </dependency>
   
       </dependencies>
   
       <build>
           <plugins>
               <plugin>
                   <artifactId>maven-assembly-plugin</artifactId>
                   <version>3.0.0</version>
                   <configuration>
                       <descriptorRefs>
                           <descriptorRef>jar-with-dependencies</descriptorRef>
                       </descriptorRefs>
                   </configuration>
                   <executions>
                       <execution>
                           <id>make-assembly</id>
                           <phase>package</phase>
                           <goals>
                               <goal>single</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
           </plugins>
       </build>
   
   </project>
   ```
   
   Please suggest how could I resolve this problem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to