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 06:18:03 UTC

[GitHub] [arrow] iamsmkr opened a new issue, #13127: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final

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

   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] iamsmkr commented on issue #13127: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final

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

   Running the command `mvn dependency:purge-local-repository clean install -U` revealed that following properties were not getting substituted for the netty jar!
   ```
   ${os.detected.name}-${os.detected.arch}
   ```
   
   Had to add the following to the `pom.xml` to solve this issue.
   ```xml
   <project>
     <build>
       <extensions>
         <extension>
           <groupId>kr.motd.maven</groupId>
           <artifactId>os-maven-plugin</artifactId>
           <version>1.7.0</version>
         </extension>
       </extensions>
     </build>
   </project>
   ```
   
   Not sure if the user of the library should be responsible to add such dependencies that too without any documentation mentionning them explicitly!


-- 
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] lidavidm commented on issue #13127: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final

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

   It is described here: https://arrow.apache.org/docs/java/install.html#installing-from-maven
   
   We could link to it from the Cookbook. 


-- 
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] iamsmkr closed issue #13127: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final

Posted by GitBox <gi...@apache.org>.
iamsmkr closed issue #13127: Cannot resolve io.netty:netty-transport-native-unix-common:4.1.72.Final 
URL: https://github.com/apache/arrow/issues/13127


-- 
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