aws / amazon-neptune-gremlin-java-sigv4

A Gremlin client for Amazon Neptune that includes AWS Signature Version 4 signing.
Apache License 2.0
27 stars 17 forks source link

maven compile error #16

Closed d-rep closed 4 years ago

d-rep commented 4 years ago

I'm following this AWS guide and it says to run mvn package dependency:copy-dependencies against this repo, which currently results in this compile error:

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ amazon-neptune-gremlin-java-sigv4 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to ./utils/amazon-neptune-gremlin-java-sigv4/target/classes
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs
WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor
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
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

Here are my current versions of things:

mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 13.0.2, vendor: N/A, runtime: /usr/local/Cellar/openjdk/13.0.2+8_2/libexec/openjdk.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.2", arch: "x86_64", family: "mac"

Do I need to downgrade to an older version of java?

d-rep commented 4 years ago

Downgrading to Java 8 fixed the compile issue. These are the specific versions that worked for me:

mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: ./utils/apache-maven-3.6.3
Java version: 1.8.0_60, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.2", arch: "x86_64", family: "mac"