https://bugzilla.redhat.com/show_bug.cgi?id=2028448
Bug ID: 2028448 Summary: I've used maven-local-openjdk11, but xmvn still uses JDK17 as toolchain for org.fedoraproject.xmvn:xmvn-mojo:javadoc Product: Fedora Version: rawhide Status: NEW Component: xmvn Assignee: mizdebsk@redhat.com Reporter: didiksupriadi41@gmail.com QA Contact: extras-qa@fedoraproject.org CC: java-sig-commits@lists.fedoraproject.org, mat.booth@gmail.com, mizdebsk@redhat.com, msrb@redhat.com Target Milestone: --- Classification: Fedora
Description of problem: I've used `maven-local-openjdk11`, but apparently `xmvn` still uses JDK17 as toolchain for org.fedoraproject.xmvn:xmvn-mojo:javadoc.
Happens when I tried to build `apache-ivy` (requires Pack200 class) here: https://download.copr.fedorainfracloud.org/results/jvanek/java17:pr:7/fedora...
but explicitly overriding JAVA_HOME to JDK11 fixed it: https://download.copr.fedorainfracloud.org/results/jvanek/java17:pr:8/fedora...
Version-Release number of selected component (if applicable): 4.0.0-4
How reproducible: always
Steps to Reproduce: For instance, we'd build `apache-ivy` using jvanek-java17-fedora-rawhide-x86_64.cfg [1] 1. $ fedpkg clone `apache-ivy` 2. $ sed -i 's/maven-local/maven-local-openjdk11/g' apache-ivy.spec 3. $ fedpkg mockbuild --root jvanek-java17-fedora-rawhide-x86_64.cfg
Actual results: https://download.copr.fedorainfracloud.org/results/jvanek/java17:pr:7/fedora...
Expected results: https://download.copr.fedorainfracloud.org/results/jvanek/java17:pr:8/fedora...
Additional info: