apache / maven-mvnd

Apache Maven Daemon
https://maven.apache.org/
Apache License 2.0
2.92k stars 212 forks source link

Possible JLine classpath issue #1125

Open teabot opened 2 months ago

teabot commented 2 months ago

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"
dasteg commented 1 month ago

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