You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/12 12:21:27 UTC

[GitHub] [arrow-cookbook] iamsmkr opened a new issue, #199: [Java] Link to install instructions (was: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final)

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-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-cookbook] lidavidm closed issue #199: [Java] Link to install instructions (was: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final)

Posted by GitBox <gi...@apache.org>.
lidavidm closed issue #199: [Java] Link to install instructions (was: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final)
URL: https://github.com/apache/arrow-cookbook/issues/199


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-cookbook] lidavidm commented on issue #199: [Java] Link to install instructions (was: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final)

Posted by GitBox <gi...@apache.org>.
lidavidm commented on issue #199:
URL: https://github.com/apache/arrow-cookbook/issues/199#issuecomment-1128117769

   @iamsmkr it seems there are plugins like https://github.com/phdata/sbt-os-detector, and you can always manually add the necessary classifier it seems? If this doesn't work, could you file a Jira with details/a reproducer? https://arrow.apache.org/docs/developers/bug_reports.html#bug-reports


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-cookbook] iamsmkr commented on issue #199: [Java] Link to install instructions (was: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final)

Posted by GitBox <gi...@apache.org>.
iamsmkr commented on issue #199:
URL: https://github.com/apache/arrow-cookbook/issues/199#issuecomment-1127244875

   This is still an issue when you try to use this libary in a sbt project. Apparently there is no os-detector sbt plugin available. This makes it difficult to use this library in sbt projects! 


-- 
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-unsubscribe@arrow.apache.org

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