osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems building Arrow Java


Hi Paul -- Java development has all been happening on Java 8 and 9. You
might want to try an older JDK since newer ones aren't being formally
supported yet

Wes

On Sun, Dec 30, 2018, 12:39 PM Paul Taylor <ptaylor@xxxxxxxxxx wrote:

> Ah, just realized I was missing javac. I installed
> `openjdk-11-jdk-headless` and verifying it exists, now the build gets
> further along, but fails related to an undeclared
> `com.google.code.findbugs` dependency? Thanks in advance for any
> guidance here.
>
> *~/dev/arrow/java*$ sudo update-alternatives --config java
> There is only one alternative in link group java (providing
> /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
> Nothing to configure.
>
> *~/dev/arrow/java*$ sudo update-alternatives --config javac
> There is only one alternative in link group javac (providing
> /usr/bin/javac): /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
> Nothing to configure.
> *~/dev/arrow/java*$ mvn install -e
> [*INFO*]*Tests run: 15*, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.119 s - in org.apache.arrow.vector.*TestCopyFrom*
> [*INFO*]
> [*INFO*] Results:
> [*INFO*]
> [*INFO*]*Tests run: 187, Failures: 0, Errors: 0, Skipped: 0*
> [*INFO*]
> [*INFO*]
> [*INFO*]*--- *maven-jar-plugin:3.0.0:jar  *(default-jar)*
> @arrow-vector*---*
> [*INFO*] Building jar:
> /home/ptaylor/dev/arrow/java/vector/target/arrow-vector-0.12.0-SNAPSHOT.jar
> [*INFO*]
> [*INFO*]*--- *maven-site-plugin:3.5.1:attach-descriptor
> *(attach-descriptor)*  @arrow-vector*---*
> [*INFO*]
> [*INFO*]*--- *maven-jar-plugin:3.0.0:test-jar  *(default)*
> @arrow-vector*---*
> [*INFO*] Building jar:
> /home/ptaylor/dev/arrow/java/vector/target/arrow-vector-0.12.0-SNAPSHOT-tests.jar
> [*INFO*]
> [*INFO*]*--- *maven-enforcer-plugin:3.0.0-M1:enforce
> *(avoid_bad_dependencies)*  @arrow-vector*---*
> [*INFO*]
> [*INFO*]*--- *maven-dependency-plugin:3.0.1:analyze-only  *(analyze)*
> @arrow-vector*---*
> [*WARNING*] Used undeclared dependencies found:
> [*WARNING*]    com.google.code.findbugs:jsr305:jar:3.0.2:compile
>
> [*INFO*]*------------------------------------------------------------------------*
> [*INFO*]*Reactor Summary:*
> [*INFO*]
> [*INFO*] Apache Arrow Java Root POM .........................*SUCCESS*  [
> 2.865 s]
> [*INFO*] Arrow Format .......................................*SUCCESS*  [
> 2.170 s]
> [*INFO*] Arrow Memory .......................................*SUCCESS*  [
> 2.669 s]
> [*INFO*] Arrow Vectors ......................................*FAILURE*  [
> 6.199 s]
> [*INFO*] Arrow Tools ........................................*SKIPPED*
> [*INFO*] Arrow JDBC Adapter .................................*SKIPPED*
> [*INFO*] Arrow Plasma Client ................................*SKIPPED*
> [*INFO*] Arrow Flight .......................................*SKIPPED*
>
> [*INFO*]*------------------------------------------------------------------------*
> [*INFO*]*BUILD FAILURE*
>
> [*INFO*]*------------------------------------------------------------------------*
> [*INFO*] Total time: 14.101 s
> [*INFO*] Finished at: 2018-12-30T10:40:11-08:00
> [*INFO*] Final Memory: 97M/376M
>
> [*INFO*]*------------------------------------------------------------------------*
> [*ERROR*] Failed to execute
> goalorg.apache.maven.plugins:maven-dependency-plugin:3.0.1:analyze-only
> *(analyze)*  on projectarrow-vector:*Dependency problems found*  ->*[Help
> 1]*
>
> On 12/30/18 10:21 AM, Paul Taylor wrote:
> >
> > Is anyone else having issues building Arrow Java? I'm trying to run
> > the integration tests locally, but can't figure out why `mvn install`
> > is failing. I see a number of warnings, and a few checkstyle errors,
> > but nothing besides that stands out.
> >
> > Thanks,
> > Paul
> >
> > *~/dev/arrow/java*$ java --version
> > Picked up JAVA_TOOL_OPTIONS:
> > openjdk 10.0.2 2018-07-17
> > OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
> > OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed
> mode)
> > *~/dev/arrow/java*$ mvn --version
> > Picked up JAVA_TOOL_OPTIONS:
> > *Apache Maven 3.5.2*
> > Maven home: /usr/share/maven
> > Java version: 10.0.2, vendor: Oracle Corporation
> > Java home: /usr/lib/jvm/java-11-openjdk-amd64
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "linux", version: "4.15.0-43-generic", arch: "amd64", family:
> "unix"
> > ***~/dev/arrow/java*$ mvn install -e
> > Picked up JAVA_TOOL_OPTIONS:
> > WARNING: An illegal reflective access operation has occurred
> > WARNING: Illegal reflective access by
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> (file:/usr/share/maven/lib/guice.jar) to method
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> > WARNING: Please consider reporting this to the maintainers of
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> > WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> > WARNING: All illegal access operations will be denied in a future release
> > [...lots of info-level logs...]
> > [*INFO*] Reading existing properties file
> [/home/ptaylor/dev/arrow/java/format/target/classes/git.properties] (for
> module Arrow Format)...
> > [*INFO*] Properties file
> [/home/ptaylor/dev/arrow/java/format/target/classes/git.properties] is
> up-to-date (for module Arrow Format)...
> > [*INFO*]
> > [*INFO*]*--- *maven-dependency-plugin:3.0.1:copy  *(copy-flatc)*
> @arrow-format*---*
> > [*INFO*] Configured Artifact:
> com.github.icexelloss:flatc-linux-x86_64:1.9.0:exe
> > [*INFO*] Copying flatc-linux-x86_64-1.9.0.exe to
> /home/ptaylor/dev/arrow/java/format/target/flatc-linux-x86_64-1.9.0.exe
> > [*INFO*]
> > [*INFO*]*--- *exec-maven-plugin:1.4.0:exec  *(script-chmod)*
> @arrow-format*---*
> > [*INFO*]
> > [*INFO*]*--- *exec-maven-plugin:1.4.0:exec  *(default)*
> @arrow-format*---*
> > [*INFO*]
> > [*INFO*]*--- *build-helper-maven-plugin:1.9.1:add-source
> *(add-generated-sources-to-classpath)*  @arrow-format*---*
> > [*INFO*] Source directory:
> /home/ptaylor/dev/arrow/java/format/target/generated-sources/flatc added.
> > [*INFO*]
> > [*INFO*]*--- *license-maven-plugin:2.3:format  *(default)*
> @arrow-format*---*
> > [*INFO*] Updating license headers...
> > [*INFO*]
> > [*INFO*]*--- *maven-remote-resources-plugin:1.5:process
> *(process-resource-bundles)*  @arrow-format*---*
> > [*INFO*]
> > [*INFO*]*--- *maven-resources-plugin:2.6:resources
> *(default-resources)*  @arrow-format*---*
> > [*INFO*] Using 'UTF-8' encoding to copy filtered resources.
> > [*INFO*] skip non existing resourceDirectory
> /home/ptaylor/dev/arrow/java/format/src/main/resources
> > [*INFO*] Copying 3 resources
> > [*INFO*]
> > [*INFO*]*--- *maven-compiler-plugin:3.6.2:compile  *(default-compile)*
> @arrow-format*---*
> > [*INFO*] Compiling 39 source files to
> /home/ptaylor/dev/arrow/java/format/target/classes
> > [*WARNING*] Unable to autodetect 'javac' path, using 'javac' from the
> environment.
> >
> [*INFO*]*------------------------------------------------------------------------*
> > [*INFO*]*Reactor Summary:*
> > [*INFO*]
> > [*INFO*] Apache Arrow Java Root POM .........................*SUCCESS*
> [  2.542 s]
> > [*INFO*] Arrow Format .......................................*FAILURE*
> [  1.154 s]
> > [*INFO*] Arrow Memory .......................................*SKIPPED*
> > [*INFO*] Arrow Vectors ......................................*SKIPPED*
> > [*INFO*] Arrow Tools ........................................*SKIPPED*
> > [*INFO*] Arrow JDBC Adapter .................................*SKIPPED*
> > [*INFO*] Arrow Plasma Client ................................*SKIPPED*
> > [*INFO*] Arrow Flight .......................................*SKIPPED*
> >
> [*INFO*]*------------------------------------------------------------------------*
> > [*INFO*]*BUILD FAILURE*
> >
> [*INFO*]*------------------------------------------------------------------------*
> > [*INFO*] Total time: 3.885 s
> > [*INFO*] Finished at: 2018-12-30T10:16:26-08:00
> > [*INFO*] Final Memory: 67M/280M
> >
> [*INFO*]*------------------------------------------------------------------------*
> > [*ERROR*] Failed to execute
> goalorg.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile
> *(default-compile)*  on projectarrow-format:*Compilation failure*  ->*[Help
> 1]*
> > *org.apache.maven.lifecycle.LifecycleExecutionException*:*Failed to
> execute goal
> > **org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile*
> *(default-compile)*  on projectarrow-format:*Compilation failure*
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:213*)
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:154*)
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:146*)
> >      *at*
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (*LifecycleModuleBuilder.java:117*)
> >      *at*
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (*LifecycleModuleBuilder.java:81*)
> >      *at*
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (*SingleThreadedBuilder.java:51*)
> >      *at*  org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (*LifecycleStarter.java:128*)
> >      *at*  org.apache.maven.DefaultMaven.doExecute
> (*DefaultMaven.java:309*)
> >      *at*  org.apache.maven.DefaultMaven.doExecute
> (*DefaultMaven.java:194*)
> >      *at*  org.apache.maven.DefaultMaven.execute
> (*DefaultMaven.java:107*)
> >      *at*  org.apache.maven.cli.MavenCli.execute (*MavenCli.java:955*)
> >      *at*  org.apache.maven.cli.MavenCli.doMain (*MavenCli.java:290*)
> >      *at*  org.apache.maven.cli.MavenCli.main (*MavenCli.java:194*)
> >      *at*  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
> (*Native Method*)
> >      *at*  jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (*NativeMethodAccessorImpl.java:62*)
> >      *at*  jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (*DelegatingMethodAccessorImpl.java:43*)
> >      *at*  java.lang.reflect.Method.invoke (*Method.java:564*)
> >      *at*
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (*Launcher.java:289*)
> >      *at*  org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (*Launcher.java:229*)
> >      *at*
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (*Launcher.java:415*)
> >      *at*  org.codehaus.plexus.classworlds.launcher.Launcher.main
> (*Launcher.java:356*)
> > *Caused by*:
> org.apache.maven.plugin.compiler.CompilationFailureException:*Compilation
> failure*
> >      *at*  org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
> (*AbstractCompilerMojo.java:1042*)
> >      *at*  org.apache.maven.plugin.compiler.CompilerMojo.execute
> (*CompilerMojo.java:158*)
> >      *at*  org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (*DefaultBuildPluginManager.java:134*)
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:208*)
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:154*)
> >      *at*  org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (*MojoExecutor.java:146*)
> >      *at*
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (*LifecycleModuleBuilder.java:117*)
> >      *at*
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (*LifecycleModuleBuilder.java:81*)
> >      *at*
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (*SingleThreadedBuilder.java:51*)
> >      *at*  org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (*LifecycleStarter.java:128*)
> >      *at*  org.apache.maven.DefaultMaven.doExecute
> (*DefaultMaven.java:309*)
> >      *at*  org.apache.maven.DefaultMaven.doExecute
> (*DefaultMaven.java:194*)
> >      *at*  org.apache.maven.DefaultMaven.execute
> (*DefaultMaven.java:107*)
> >      *at*  org.apache.maven.cli.MavenCli.execute (*MavenCli.java:955*)
> >      *at*  org.apache.maven.cli.MavenCli.doMain (*MavenCli.java:290*)
> >      *at*  org.apache.maven.cli.MavenCli.main (*MavenCli.java:194*)
> >      *at*  jdk.internal.reflect.NativeMethodAccessorImpl.invoke0
> (*Native Method*)
> >      *at*  jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (*NativeMethodAccessorImpl.java:62*)
> >      *at*  jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (*DelegatingMethodAccessorImpl.java:43*)
> >      *at*  java.lang.reflect.Method.invoke (*Method.java:564*)
> >      *at*
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (*Launcher.java:289*)
> >      *at*  org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (*Launcher.java:229*)
> >      *at*
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (*Launcher.java:415*)
> >      *at*  org.codehaus.plexus.classworlds.launcher.Launcher.main
> (*Launcher.java:356*)
>