Closed satoshinm closed 7 years ago
Don't change the pom. We require those versions specifically (that's why those versions are in the pom), and that's why it's not compiling for you. That Stack Overflow answer is completely wrong.
You need at least Java 8 update 101 to compile Glowstone because that's when Let's Encrypt was added to the Java truststore. We use Let's Encrypt on our Maven server. So, just remove those pom changes you did and do the Maven build with your Java 8 build 131 installation.
In case anyone was having this same error, the solution is to (not apply the workarounds from StackOverflow) and just update to Maven 3.5.0 from http://maven.apache.org.
Older versions of Maven (at least 3.0.5 which I was using) do not support SNI, so cannot connect to repo.glowstone.net which requires SNI. After updating to Maven 3.5.0 and using Java 1.8.0_131 I was able to build Glowstone!
Posted a correct answer to StackOverflow: http://stackoverflow.com/questions/40048767/glowstone-install-maven-peer-not-authenticated-could-not-resolve-dependencies/43709473#43709473
Trying to get setup to build Glowstone, using latest commit from git (4506e5d39af45c0579e067390f3cd9689fca2f47 Fri Apr 28 14:48:58 2017 -0400), hitting this error:
Details on my setup:
Made these changes to pom.xml:
Download dependencies to ~/.m2:
I first tested with glowkit 1.11.2-R0.1-20170427.113750-21 downloaded from repo.glowstone.net, and also with 1.11.2-R0.1-SNAPSHOT after
mvn install
ing it myself after solving https://github.com/GlowstoneMC/Glowkit/issues/10Installed jdk-9+167 from http://jdk.java.net/9/ (this is on macOS 10.12.4) - with jdk1.8.0_73.jdk I get a compile error "java.lang.NullPointerException at lombok.javac.Javac.createVoidType(Javac.java:307)", this is fixed by updating to jdk1.8.0_131.jdk, but then fails with "HttpClient.java:[15,29] package io.netty.resolver.dns does not exist", updating to jdk-9 gets further with neither of these errors but then it hits the error at the beginning of this issue:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project glowstone: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.Processor (in unnamed module @0x598bf4da) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x598bf4da -> [Help 1]
Any hints on how to proceed. I searched for this error and found https://groups.google.com/forum/#!topic/project-lombok/RwuLlENLCQY which said to ensure your $JAVA_HOME is set correctly, I set mine to the java 9 sdk as follows but still hit the error:
https://github.com/GlowstoneMC/Glowstone/issues/467