XSeries icon indicating copy to clipboard operation
XSeries copied to clipboard

JitPack build fails due to misconfigured Maven toolchains plugin

Open SrT3ddy opened this issue 11 months ago • 1 comments

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

SrT3ddy avatar Mar 11 '25 21:03 SrT3ddy

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

CryptoMorin avatar Mar 15 '25 13:03 CryptoMorin