Possible JLine classpath issue
I'm working on a large multi-module project. When building with mvnd, with certain modules, I consistently encounter fatal errors in the io.quarkus:quarkus-maven-plugin of the form:
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.6.9:generate-code-tests (default) on project xxx:
Execution default of goal io.quarkus:quarkus-maven-plugin:3.6.9:generate-code-tests failed:
A required class was missing while executing io.quarkus:quarkus-maven-plugin:3.6.9:generate-code-tests:
org/jline/reader/LineReader
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>io.quarkus:quarkus-maven-plugin:3.6.9
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
...
This does not occur with vanilla mvn, and thus I am considering if this is an issue with mvnd. I have tried manually adding the JLine dependency to the quarkus-maven-plugin but the issue persists.
mvn
❯ mvn -X
Running `/Users/elliot.west/git/dremio/mvnw`...
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /Users/elliot.west/.m2/wrapper/dists/apache-maven-3.9.9-bin/33b4b2b4/apache-maven-3.9.9
Java version: 21.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"
mvnd
❯ mvnd -X
Apache Maven Daemon (mvnd) 1.0.1 darwin-aarch64 native client (621c13a190faf99724130a4dd0b8ec473a9cde44)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.osx.OsXNativePty
Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Maven home: /opt/homebrew/Cellar/mvnd@1/1.0.1/libexec/mvn
Java version: 21.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"
happens here as well constantly. cant use mvnd with quarkus. linux, mnd 1.0.2, maven 3.9.9
works on colleague's machine with windows though
I can only second that. Windows 10, Graal 17, mvnd 1.0.2, maven 3.9.9, quarkus 3.10.2 Have tried it with multiple quarkus projects. None of them work.
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.8.5:generate-code-tests (default) on project project-x: Execution default of goal io.quarkus:quarkus-maven-plugin:3.8.5:generate-code-tests failed: A required class was missing while executing io.quarkus:quarkus-maven-plugin:3.8.5:generate-code-tests: org/jline/reader/LineReader
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>io.quarkus:quarkus-maven-plugin:3.8.5
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
I figured out what is happening here, it is a quarkus breakage, it is referenced here: https://github.com/quarkusio/quarkus/pull/41260
And they say it will be resolved by an update to Beanbag, and the issue there is reported here: https://github.com/smallrye/smallrye-beanbag/issues/129
This is fixed in referenced projects.