JitPack build fails due to misconfigured Maven toolchains plugin
I loosened the reflection restrictions a bit. Use this commit from JitPack and see if it fixes the issue.
Originally posted by @CryptoMorin in #324
Hi, I'm having the same problem, but JitPack isn't compiling
This is no longer an issue now with the official v13.1.0 release out, but if anyone can figure out why JitPack is failing, I'd appreciate to fix it.
Build Error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:3.2.0:toolchain (default) on project XSeries: Misconfigured toolchains. Non-existing JDK home configuration at /usr/lib/jvm/java-6-oracle -> [Help 1]
JitPack configured JDK: https://github.com/CryptoMorin/XSeries/blob/a9d001886d454f2290633c2149d53eb63e6c7f35/jitpack.yml#L1-L2
Configured Toolchain plugin: https://github.com/CryptoMorin/XSeries/blob/a9d001886d454f2290633c2149d53eb63e6c7f35/pom.xml#L128-L147
Where ${testJava} is:
https://github.com/CryptoMorin/XSeries/blob/a9d001886d454f2290633c2149d53eb63e6c7f35/pom.xml#L115
According to Maven version range rules, [...] should only use the version specified there.
Not sure why it tries to use Java 6...