Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Quarkus 2.2.0 breaks Dev Mode on Windows #19673

Closed
knutwannheden opened this issue Aug 26, 2021 · 40 comments · Fixed by #19760
Closed

Regression: Quarkus 2.2.0 breaks Dev Mode on Windows #19673

knutwannheden opened this issue Aug 26, 2021 · 40 comments · Fixed by #19760
Labels
area/devmode env/windows Impacts Windows machines kind/bug Something isn't working
Milestone

Comments

@knutwannheden
Copy link
Contributor

knutwannheden commented Aug 26, 2021

Describe the bug

When trying to start a Quarkus 2.2.0 application in dev-mode (using mvn quarkus:dev) I get the following error printed to the console and the application fails to start:

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev (default-cli) on project gluon-smoketest-runner: Execution default-cli of goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev failed: A required class was missing while executing io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev: org/fusesource/jansi/internal/Kernel32
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.quarkus:quarkus-maven-plugin:2.2.0.Final
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-maven-plugin/2.2.0.Final/quarkus-maven-plugin-2.2.0.Final.jar
[ERROR] urls[1] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-bootstrap-core/2.2.0.Final/quarkus-bootstrap-core-2.2.0.Final.jar
[ERROR] urls[2] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-bootstrap-app-model/2.2.0.Final/quarkus-bootstrap-app-model-2.2.0.Final.jar
[ERROR] urls[3] = file:/C:/Users/knutw/.m2/repository/org/jboss/logging/jboss-logging/3.4.2.Final/jboss-logging-3.4.2.Final.jar
[ERROR] urls[4] = file:/C:/Users/knutw/.m2/repository/org/jboss/logging/commons-logging-jboss-logging/1.0.0.Final/commons-logging-jboss-logging-1.0.0.Final.jar
[ERROR] urls[5] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-bootstrap-maven-resolver/2.2.0.Final/quarkus-bootstrap-maven-resolver-2.2.0.Final.jar
[ERROR] urls[6] = file:/C:/Users/knutw/.m2/repository/org/jboss/logmanager/jboss-logmanager-embedded/1.0.9/jboss-logmanager-embedded-1.0.9.jar
[ERROR] urls[7] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/maven-embedder/3.8.1/maven-embedder-3.8.1.jar
[ERROR] urls[8] = file:/C:/Users/knutw/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar
[ERROR] urls[9] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/resolver/maven-resolver-connector-basic/1.6.2/maven-resolver-connector-basic-1.6.2.jar
[ERROR] urls[10] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/resolver/maven-resolver-transport-wagon/1.6.2/maven-resolver-transport-wagon-1.6.2.jar
[ERROR] urls[11] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/wagon/wagon-http/3.4.3/wagon-http-3.4.3.jar
[ERROR] urls[12] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/wagon/wagon-http-shared/3.4.3/wagon-http-shared-3.4.3.jar
[ERROR] urls[13] = file:/C:/Users/knutw/.m2/repository/org/jsoup/jsoup/1.12.1/jsoup-1.12.1.jar
[ERROR] urls[14] = file:/C:/Users/knutw/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
[ERROR] urls[15] = file:/C:/Users/knutw/.m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
[ERROR] urls[16] = file:/C:/Users/knutw/.m2/repository/org/apache/httpcomponents/httpcore/4.4.14/httpcore-4.4.14.jar
[ERROR] urls[17] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/wagon/wagon-file/3.4.3/wagon-file-3.4.3.jar
[ERROR] urls[18] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-bootstrap-gradle-resolver/2.2.0.Final/quarkus-bootstrap-gradle-resolver-2.2.0.Final.jar
[ERROR] urls[19] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-io/1.6.0/smallrye-common-io-1.6.0.jar
[ERROR] urls[20] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-core-deployment/2.2.0.Final/quarkus-core-deployment-2.2.0.Final.jar
[ERROR] urls[21] = file:/C:/Users/knutw/.m2/repository/org/aesh/readline/2.1/readline-2.1.jar
[ERROR] urls[22] = file:/C:/Users/knutw/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[23] = file:/C:/Users/knutw/.m2/repository/org/wildfly/common/wildfly-common/1.5.4.Final-format-001/wildfly-common-1.5.4.Final-format-001.jar
[ERROR] urls[24] = file:/C:/Users/knutw/.m2/repository/io/quarkus/gizmo/gizmo/1.0.9.Final/gizmo-1.0.9.Final.jar
[ERROR] urls[25] = file:/C:/Users/knutw/.m2/repository/org/ow2/asm/asm-util/9.1/asm-util-9.1.jar
[ERROR] urls[26] = file:/C:/Users/knutw/.m2/repository/org/ow2/asm/asm-tree/9.1/asm-tree-9.1.jar
[ERROR] urls[27] = file:/C:/Users/knutw/.m2/repository/org/ow2/asm/asm-analysis/9.1/asm-analysis-9.1.jar
[ERROR] urls[28] = file:/C:/Users/knutw/.m2/repository/org/jboss/jandex/2.3.1.Final/jandex-2.3.1.Final.jar
[ERROR] urls[29] = file:/C:/Users/knutw/.m2/repository/org/ow2/asm/asm/9.1/asm-9.1.jar
[ERROR] urls[30] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-development-mode-spi/2.2.0.Final/quarkus-development-mode-spi-2.2.0.Final.jar
[ERROR] urls[31] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-class-change-agent/2.2.0.Final/quarkus-class-change-agent-2.2.0.Final.jar
[ERROR] urls[32] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-utilities/2.2.0.Final/quarkus-devtools-utilities-2.2.0.Final.jar
[ERROR] urls[33] = file:/C:/Users/knutw/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.4/org.eclipse.sisu.inject-0.3.4.jar
[ERROR] urls[34] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-core/2.2.0.Final/quarkus-core-2.2.0.Final.jar
[ERROR] urls[35] = file:/C:/Users/knutw/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
[ERROR] urls[36] = file:/C:/Users/knutw/.m2/repository/io/smallrye/config/smallrye-config/2.4.4/smallrye-config-2.4.4.jar
[ERROR] urls[37] = file:/C:/Users/knutw/.m2/repository/io/smallrye/config/smallrye-config-core/2.4.4/smallrye-config-core-2.4.4.jar
[ERROR] urls[38] = file:/C:/Users/knutw/.m2/repository/org/eclipse/microprofile/config/microprofile-config-api/2.0/microprofile-config-api-2.0.jar
[ERROR] urls[39] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-annotation/1.6.0/smallrye-common-annotation-1.6.0.jar
[ERROR] urls[40] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-expression/1.6.0/smallrye-common-expression-1.6.0.jar
[ERROR] urls[41] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-function/1.6.0/smallrye-common-function-1.6.0.jar
[ERROR] urls[42] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-constraint/1.6.0/smallrye-common-constraint-1.6.0.jar
[ERROR] urls[43] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-classloader/1.6.0/smallrye-common-classloader-1.6.0.jar
[ERROR] urls[44] = file:/C:/Users/knutw/.m2/repository/io/smallrye/config/smallrye-config-common/2.4.4/smallrye-config-common-2.4.4.jar
[ERROR] urls[45] = file:/C:/Users/knutw/.m2/repository/org/jboss/logging/jboss-logging-annotations/2.2.1.Final/jboss-logging-annotations-2.2.1.Final.jar
[ERROR] urls[46] = file:/C:/Users/knutw/.m2/repository/org/jboss/threads/jboss-threads/3.4.2.Final/jboss-threads-3.4.2.Final.jar
[ERROR] urls[47] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-bootstrap-runner/2.2.0.Final/quarkus-bootstrap-runner-2.2.0.Final.jar
[ERROR] urls[48] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-builder/2.2.0.Final/quarkus-builder-2.2.0.Final.jar
[ERROR] urls[49] = file:/C:/Users/knutw/.m2/repository/org/graalvm/sdk/graal-sdk/21.2.0/graal-sdk-21.2.0.jar
[ERROR] urls[50] = file:/C:/Users/knutw/.m2/repository/org/junit/platform/junit-platform-launcher/1.7.2/junit-platform-launcher-1.7.2.jar
[ERROR] urls[51] = file:/C:/Users/knutw/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar
[ERROR] urls[52] = file:/C:/Users/knutw/.m2/repository/org/junit/platform/junit-platform-engine/1.7.2/junit-platform-engine-1.7.2.jar
[ERROR] urls[53] = file:/C:/Users/knutw/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar
[ERROR] urls[54] = file:/C:/Users/knutw/.m2/repository/org/junit/platform/junit-platform-commons/1.7.2/junit-platform-commons-1.7.2.jar
[ERROR] urls[55] = file:/C:/Users/knutw/.m2/repository/org/junit/jupiter/junit-jupiter/5.7.2/junit-jupiter-5.7.2.jar
[ERROR] urls[56] = file:/C:/Users/knutw/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.7.2/junit-jupiter-api-5.7.2.jar
[ERROR] urls[57] = file:/C:/Users/knutw/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.7.2/junit-jupiter-params-5.7.2.jar
[ERROR] urls[58] = file:/C:/Users/knutw/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.7.2/junit-jupiter-engine-5.7.2.jar
[ERROR] urls[59] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-project-core-extension-codestarts/2.2.0.Final/quarkus-project-core-extension-codestarts-2.2.0.Final.jar
[ERROR] urls[60] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-common/2.2.0.Final/quarkus-devtools-common-2.2.0.Final.jar
[ERROR] urls[61] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-registry-client/2.2.0.Final/quarkus-devtools-registry-client-2.2.0.Final.jar
[ERROR] urls[62] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-artifact-api/2.2.0.Final/quarkus-devtools-artifact-api-2.2.0.Final.jar
[ERROR] urls[63] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-message-writer/2.2.0.Final/quarkus-devtools-message-writer-2.2.0.Final.jar
[ERROR] urls[64] = file:/C:/Users/knutw/.m2/repository/io/smallrye/common/smallrye-common-os/1.6.0/smallrye-common-os-1.6.0.jar
[ERROR] urls[65] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-base-codestarts/2.2.0.Final/quarkus-devtools-base-codestarts-2.2.0.Final.jar
[ERROR] urls[66] = file:/C:/Users/knutw/.m2/repository/io/quarkus/quarkus-devtools-codestarts/2.2.0.Final/quarkus-devtools-codestarts-2.2.0.Final.jar
[ERROR] urls[67] = file:/C:/Users/knutw/.m2/repository/io/quarkus/qute/qute-core/2.2.0.Final/qute-core-2.2.0.Final.jar
[ERROR] urls[68] = file:/C:/Users/knutw/.m2/repository/io/smallrye/reactive/mutiny/1.0.0/mutiny-1.0.0.jar
[ERROR] urls[69] = file:/C:/Users/knutw/.m2/repository/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar
[ERROR] urls[70] = file:/C:/Users/knutw/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
[ERROR] urls[71] = file:/C:/Users/knutw/.m2/repository/org/jline/jline/3.20.0/jline-3.20.0.jar
[ERROR] urls[72] = file:/C:/Users/knutw/.m2/repository/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
[ERROR] urls[73] = file:/C:/Users/knutw/.m2/repository/io/fabric8/maven-model-helper/18/maven-model-helper-18.jar
[ERROR] urls[74] = file:/C:/Users/knutw/.m2/repository/org/jdom/jdom/1.1.3/jdom-1.1.3.jar
[ERROR] urls[75] = file:/C:/Users/knutw/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.12.4/jackson-dataformat-yaml-2.12.4.jar
[ERROR] urls[76] = file:/C:/Users/knutw/.m2/repository/org/yaml/snakeyaml/1.29/snakeyaml-1.29.jar
[ERROR] urls[77] = file:/C:/Users/knutw/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar
[ERROR] urls[78] = file:/C:/Users/knutw/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar
[ERROR] urls[79] = file:/C:/Users/knutw/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar
[ERROR] urls[80] = file:/C:/Users/knutw/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar
[ERROR] urls[81] = file:/C:/Users/knutw/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar
[ERROR] urls[82] = file:/C:/Users/knutw/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.25/plexus-interpolation-1.25.jar
[ERROR] urls[83] = file:/C:/Users/knutw/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
[ERROR] urls[84] = file:/C:/Users/knutw/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[85] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/maven-builder-support/3.8.1/maven-builder-support-3.8.1.jar
[ERROR] urls[86] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/resolver/maven-resolver-util/1.6.2/maven-resolver-util-1.6.2.jar
[ERROR] urls[87] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.3/maven-shared-utils-3.3.3.jar
[ERROR] urls[88] = file:/C:/Users/knutw/.m2/repository/com/google/inject/guice/4.2.1/guice-4.2.1-no_aop.jar
[ERROR] urls[89] = file:/C:/Users/knutw/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[90] = file:/C:/Users/knutw/.m2/repository/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
[ERROR] urls[91] = file:/C:/Users/knutw/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[92] = file:/C:/Users/knutw/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[93] = file:/C:/Users/knutw/.m2/repository/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar
[ERROR] urls[94] = file:/C:/Users/knutw/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[95] = file:/C:/Users/knutw/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.0/plexus-component-annotations-2.1.0.jar
[ERROR] urls[96] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.10.0/maven-artifact-transfer-0.10.0.jar
[ERROR] urls[97] = file:/C:/Users/knutw/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
[ERROR] urls[98] = file:/C:/Users/knutw/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[99] = file:/C:/Users/knutw/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[100] = file:/C:/Users/knutw/.m2/repository/org/freemarker/freemarker/2.3.31/freemarker-2.3.31.jar
[ERROR] urls[101] = file:/C:/Users/knutw/.m2/repository/org/glassfish/jakarta.json/1.1.6/jakarta.json-1.1.6.jar
[ERROR] urls[102] = file:/C:/Users/knutw/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.12.4/jackson-databind-2.12.4.jar
[ERROR] urls[103] = file:/C:/Users/knutw/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.12.4/jackson-annotations-2.12.4.jar
[ERROR] urls[104] = file:/C:/Users/knutw/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.12.4/jackson-core-2.12.4.jar
[ERROR] urls[105] = file:/C:/Users/knutw/.m2/repository/org/twdata/maven/mojo-executor/2.3.1/mojo-executor-2.3.1.jar
[ERROR] urls[106] = file:/C:/Users/knutw/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.1.0.Final/slf4j-jboss-logmanager-1.1.0.Final.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : org.fusesource.jansi.internal.Kernel32
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

With Quarkus 2.1.3 the same application works without issues.

Expected behavior

Dev Mode should also work on Windows.

Actual behavior

See description.

How to Reproduce?

No response

Output of uname -a or ver

MSYS_NT-10.0-22000 WIN10-KNUT 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys

Output of java -version

openjdk version "11.0.9" 2020-10-20 LTS OpenJDK Runtime Environment Zulu11.43+22-SA (build 11.0.9+11-LTS) OpenJDK 64-Bit Server VM Zulu11.43+22-SA (build 11.0.9+11-LTS, mixed mode)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.2.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)

Additional information

No response

@knutwannheden knutwannheden added the kind/bug Something isn't working label Aug 26, 2021
@quarkus-bot quarkus-bot bot added area/devmode env/windows Impacts Windows machines labels Aug 26, 2021
@knutwannheden
Copy link
Contributor Author

/cc @stuartwdouglas

@jaikiran
Copy link
Member

I think this is the same issue as what we fixed recently here #19510. Temporary workaround till that fix makes it to a release, is to use Maven 3.8.1 instead of Maven 3.8.2

@knutwannheden
Copy link
Contributor Author

I think this is the same issue as what we fixed recently here #19510. Temporary workaround till that fix makes it to a release, is to use Maven 3.8.1 instead of Maven 3.8.2

I did in fact first encounter the issue with Maven 3.6.2. I have now also tested with Maven 3.8.1, but the result is the same there.

@knutwannheden
Copy link
Contributor Author

Looking at the error message I can however also not see the jansi-1.18.jar anywhere on the classpath. If I remove the artifact from my local Maven repo, I can see that it gets downloaded properly when I run mvn quarkus:dev, but it looks like it is in the end missing from the classpath somehow.

@yuhaibohotmail
Copy link

I have the same problem.

@gsmet
Copy link
Member

gsmet commented Aug 26, 2021

@jaikiran The fix you mention is already in 2.2.0.Final so that must be something else.

@knutwannheden Are you sure you use 2.2.0.Final for both the BOM and the Maven plugin? Because it shouldn't use the old jansi anymore in 2.2.0.Final AFAIK.

@knutwannheden
Copy link
Contributor Author

@gsmet I am quite positive, but I will give it another try and report back here.

@gsmet
Copy link
Member

gsmet commented Aug 26, 2021

@aloubyansky what is the command to get the full deployment dependency tree? Is it possible to get the one from dev mode?

@aloubyansky
Copy link
Member

mvn quarkus:dependency-tree -Dmode=dev

@gsmet
Copy link
Member

gsmet commented Aug 26, 2021

@knutwannheden could you get us the output of ^

@knutwannheden
Copy link
Contributor Author

[INFO] --- quarkus-maven-plugin:2.2.0.Final:dependency-tree (default-cli) @ code-with-quarkus ---
[INFO] Quarkus application DEV mode build dependency tree:
[INFO] org.acme:code-with-quarkus:pom:1.0.0-SNAPSHOT
[INFO] ├─ io.quarkus:quarkus-resteasy-deployment:jar:2.2.0.Final (compile)
[INFO] │  ├─ io.quarkus:quarkus-resteasy-server-common-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-common-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-resteasy-common:jar:2.2.0.Final (compile)
[INFO] │  │  │  │  ├─ org.jboss.resteasy:resteasy-core:jar:4.7.0.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:2.0.1.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec:jar:2.0.0.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.resteasy:resteasy-core-spi:jar:4.7.0.Final (compile)
[INFO] │  │  │  │  │  └─ com.ibm.async:asyncutil:jar:0.1.0 (compile)
[INFO] │  │  │  │  └─ com.sun.activation:jakarta.activation:jar:1.2.1 (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-resteasy-common-spi:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-server-common-spi:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-server-common:jar:2.2.0.Final (compile)
[INFO] │  │  │  └─ jakarta.validation:jakarta.validation-api:jar:2.0.2 (compile)
[INFO] │  │  └─ io.quarkus:quarkus-undertow-spi:jar:2.2.0.Final (compile)
[INFO] │  │     ├─ io.quarkus.http:quarkus-http-servlet:jar:4.1.1 (compile)
[INFO] │  │     │  └─ io.quarkus.http:quarkus-http-core:jar:4.1.1 (compile)
[INFO] │  │     │     └─ io.quarkus.http:quarkus-http-http-core:jar:4.1.1 (compile)
[INFO] │  │     ├─ jakarta.servlet:jakarta.servlet-api:jar:4.0.3 (compile)
[INFO] │  │     └─ org.jboss.metadata:jboss-metadata-web:jar:11.0.0.Final (compile)
[INFO] │  │        └─ org.jboss.metadata:jboss-metadata-common:jar:11.0.0.Final (compile)
[INFO] │  ├─ io.quarkus:quarkus-vertx-http-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-vertx-core-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-netty-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  │  │  └─ io.quarkus:quarkus-netty:jar:2.2.0.Final (compile)
[INFO] │  │  │  │     └─ io.netty:netty-codec:jar:4.1.65.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-vertx-core:jar:2.2.0.Final (compile)
[INFO] │  │  │     └─ io.netty:netty-codec-haproxy:jar:4.1.65.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-vertx-http:jar:2.2.0.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-security-runtime-spi:jar:2.2.0.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-mutiny:jar:2.2.0.Final (compile)
[INFO] │  │  │     ├─ io.quarkus:quarkus-smallrye-context-propagation:jar:2.2.0.Final (compile)
[INFO] │  │  │     │  └─ io.smallrye:smallrye-context-propagation:jar:1.2.0 (compile)
[INFO] │  │  │     │     ├─ io.smallrye:smallrye-context-propagation-api:jar:1.2.0 (compile)
[INFO] │  │  │     │     └─ io.smallrye:smallrye-context-propagation-storage:jar:1.2.0 (compile)
[INFO] │  │  │     └─ io.smallrye.reactive:mutiny-smallrye-context-propagation:jar:1.0.0 (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-mutiny-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-smallrye-context-propagation-deployment:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-kubernetes-spi:jar:2.2.0.Final (compile)
[INFO] │  │  ├─ io.quarkus.qute:qute-core:jar:2.2.0.Final (compile)
[INFO] │  │  │  └─ io.smallrye.reactive:mutiny:jar:1.0.0 (compile)
[INFO] │  │  │     ├─ org.reactivestreams:reactive-streams:jar:1.0.3 (compile)
[INFO] │  │  │     └─ io.smallrye.common:smallrye-common-annotation:jar:1.6.0 (compile)
[INFO] │  │  ├─ org.yaml:snakeyaml:jar:1.29 (compile)
[INFO] │  │  └─ com.fasterxml.jackson.core:jackson-databind:jar:2.12.4 (compile)
[INFO] │  │     ├─ com.fasterxml.jackson.core:jackson-annotations:jar:2.12.4 (compile)
[INFO] │  │     └─ com.fasterxml.jackson.core:jackson-core:jar:2.12.4 (compile)
[INFO] │  ├─ io.quarkus:quarkus-resteasy:jar:2.2.0.Final (compile)
[INFO] │  └─ io.quarkus:quarkus-security-spi:jar:2.2.0.Final (compile)
[INFO] │     └─ io.quarkus.security:quarkus-security:jar:1.1.4.Final (compile)
[INFO] └─ io.quarkus:quarkus-arc-deployment:jar:2.2.0.Final (compile)
[INFO]    ├─ io.quarkus:quarkus-core-deployment:jar:2.2.0.Final (compile)
[INFO]    │  ├─ org.aesh:readline:jar:2.1 (compile)
[INFO]    │  │  └─ org.fusesource.jansi:jansi:jar:1.18 (compile)
[INFO]    │  ├─ org.apache.commons:commons-lang3:jar:3.12.0 (compile)
[INFO]    │  ├─ org.wildfly.common:wildfly-common:jar:1.5.4.Final-format-001 (compile)
[INFO]    │  ├─ io.quarkus.gizmo:gizmo:jar:1.0.9.Final (compile)
[INFO]    │  │  └─ org.ow2.asm:asm-util:jar:9.1 (compile)
[INFO]    │  │     ├─ org.ow2.asm:asm-tree:jar:9.1 (compile)
[INFO]    │  │     └─ org.ow2.asm:asm-analysis:jar:9.1 (compile)
[INFO]    │  ├─ org.jboss:jandex:jar:2.3.1.Final (compile)
[INFO]    │  ├─ org.ow2.asm:asm:jar:9.1 (compile)
[INFO]    │  ├─ io.quarkus:quarkus-development-mode-spi:jar:2.2.0.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-class-change-agent:jar:2.2.0.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-bootstrap-core:jar:2.2.0.Final (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-app-model:jar:2.2.0.Final (compile)
[INFO]    │  │  │  └─ org.jboss.logging:commons-logging-jboss-logging:jar:1.0.0.Final (runtime)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-maven-resolver:jar:2.2.0.Final (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-embedder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-settings:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-core:jar:3.8.1 (compile)
[INFO]    │  │  │  │  │  ├─ org.apache.maven:maven-artifact:jar:3.8.1 (compile)
[INFO]    │  │  │  │  │  └─ org.codehaus.plexus:plexus-component-annotations:jar:2.1.0 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-plugin-api:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-model:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-model-builder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-builder-support:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-api:jar:1.6.2 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-util:jar:1.6.2 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.shared:maven-shared-utils:jar:3.3.3 (compile)
[INFO]    │  │  │  │  │  └─ commons-io:commons-io:jar:2.11.0 (compile)
[INFO]    │  │  │  │  ├─ com.google.inject:guice:jar:no_aop:4.2.1 (compile)
[INFO]    │  │  │  │  │  └─ com.google.guava:guava:jar:30.1.1-jre (compile)
[INFO]    │  │  │  │  │     ├─ com.google.guava:failureaccess:jar:1.0.1 (compile)
[INFO]    │  │  │  │  │     └─ com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-utils:jar:3.2.1 (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-classworlds:jar:2.6.0 (compile)
[INFO]    │  │  │  │  └─ commons-cli:commons-cli:jar:1.4 (compile)
[INFO]    │  │  │  ├─ org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4 (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-settings-builder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-interpolation:jar:1.25 (compile)
[INFO]    │  │  │  │  └─ org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4 (compile)
[INFO]    │  │  │  │     └─ org.sonatype.plexus:plexus-cipher:jar:1.4 (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-resolver-provider:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-repository-metadata:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-spi:jar:1.6.2 (compile)
[INFO]    │  │  │  │  └─ org.apache.maven.resolver:maven-resolver-impl:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.resolver:maven-resolver-transport-wagon:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.wagon:wagon-http:jar:3.4.3 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.wagon:wagon-http-shared:jar:3.4.3 (compile)
[INFO]    │  │  │  │  │  └─ org.jsoup:jsoup:jar:1.12.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.httpcomponents:httpclient:jar:4.5.13 (compile)
[INFO]    │  │  │  │  │  └─ commons-codec:commons-codec:jar:1.15 (compile)
[INFO]    │  │  │  │  ├─ org.apache.httpcomponents:httpcore:jar:4.4.14 (compile)
[INFO]    │  │  │  │  └─ org.apache.maven.wagon:wagon-provider-api:jar:3.4.3 (compile)
[INFO]    │  │  │  └─ org.apache.maven.wagon:wagon-file:jar:3.4.3 (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-gradle-resolver:jar:2.2.0.Final (compile)
[INFO]    │  │  └─ io.smallrye.common:smallrye-common-io:jar:1.6.0 (compile)
[INFO]    │  ├─ io.quarkus:quarkus-devtools-utilities:jar:2.2.0.Final (compile)
[INFO]    │  ├─ org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4 (runtime)
[INFO]    │  ├─ io.quarkus:quarkus-core:jar:2.2.0.Final (compile)
[INFO]    │  │  ├─ jakarta.inject:jakarta.inject-api:jar:1.0 (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-ide-launcher:jar:2.2.0.Final (compile)
[INFO]    │  │  ├─ io.smallrye.config:smallrye-config:jar:2.4.4 (compile)
[INFO]    │  │  │  └─ io.smallrye.config:smallrye-config-core:jar:2.4.4 (compile)
[INFO]    │  │  │     ├─ org.eclipse.microprofile.config:microprofile-config-api:jar:2.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-expression:jar:1.6.0 (compile)
[INFO]    │  │  │     │  └─ io.smallrye.common:smallrye-common-function:jar:1.6.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-constraint:jar:1.6.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-classloader:jar:1.6.0 (compile)
[INFO]    │  │  │     └─ io.smallrye.config:smallrye-config-common:jar:2.4.4 (compile)
[INFO]    │  │  ├─ org.jboss.logmanager:jboss-logmanager-embedded:jar:1.0.9 (compile)
[INFO]    │  │  ├─ org.jboss.logging:jboss-logging-annotations:jar:2.2.1.Final (compile)
[INFO]    │  │  ├─ org.jboss.threads:jboss-threads:jar:3.4.2.Final (compile)
[INFO]    │  │  ├─ org.slf4j:slf4j-api:jar:1.7.30 (compile)
[INFO]    │  │  ├─ org.jboss.slf4j:slf4j-jboss-logmanager:jar:1.1.0.Final (compile)
[INFO]    │  │  └─ io.quarkus:quarkus-bootstrap-runner:jar:2.2.0.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-builder:jar:2.2.0.Final (compile)
[INFO]    │  ├─ org.graalvm.sdk:graal-sdk:jar:21.2.0 (compile)
[INFO]    │  ├─ org.junit.platform:junit-platform-launcher:jar:1.7.2 (compile)
[INFO]    │  │  ├─ org.apiguardian:apiguardian-api:jar:1.1.0 (compile)
[INFO]    │  │  └─ org.junit.platform:junit-platform-engine:jar:1.7.2 (compile)
[INFO]    │  │     ├─ org.opentest4j:opentest4j:jar:1.2.0 (compile)
[INFO]    │  │     └─ org.junit.platform:junit-platform-commons:jar:1.7.2 (compile)
[INFO]    │  └─ org.junit.jupiter:junit-jupiter:jar:5.7.2 (compile)
[INFO]    │     ├─ org.junit.jupiter:junit-jupiter-api:jar:5.7.2 (compile)
[INFO]    │     ├─ org.junit.jupiter:junit-jupiter-params:jar:5.7.2 (compile)
[INFO]    │     └─ org.junit.jupiter:junit-jupiter-engine:jar:5.7.2 (runtime)
[INFO]    ├─ io.quarkus:quarkus-vertx-http-dev-console-spi:jar:2.2.0.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-vertx-http-dev-console-runtime-spi:jar:2.2.0.Final (compile)
[INFO]    │  ├─ io.quarkus.arc:arc:jar:2.2.0.Final (compile)
[INFO]    │  │  └─ jakarta.transaction:jakarta.transaction-api:jar:1.3.3 (compile)
[INFO]    │  └─ io.vertx:vertx-web:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-web-common:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-auth-common:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-bridge-common:jar:4.1.2 (compile)
[INFO]    │     └─ io.vertx:vertx-core:jar:4.1.2 (compile)
[INFO]    │        ├─ io.netty:netty-common:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-buffer:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-transport:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-handler:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-handler-proxy:jar:4.1.65.Final (compile)
[INFO]    │        │  └─ io.netty:netty-codec-socks:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-codec-http:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-codec-http2:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-resolver:jar:4.1.65.Final (compile)
[INFO]    │        └─ io.netty:netty-resolver-dns:jar:4.1.65.Final (compile)
[INFO]    │           └─ io.netty:netty-codec-dns:jar:4.1.65.Final (compile)
[INFO]    ├─ io.quarkus:quarkus-arc:jar:2.2.0.Final (compile)
[INFO]    │  └─ org.eclipse.microprofile.context-propagation:microprofile-context-propagation-api:jar:1.2 (compile)
[INFO]    └─ io.quarkus.arc:arc-processor:jar:2.2.0.Final (compile)
[INFO]       ├─ jakarta.enterprise:jakarta.enterprise.cdi-api:jar:2.0.2 (compile)
[INFO]       │  ├─ jakarta.el:jakarta.el-api:jar:3.0.3 (compile)
[INFO]       │  └─ jakarta.interceptor:jakarta.interceptor-api:jar:1.2.5 (compile)
[INFO]       ├─ org.jboss.logging:jboss-logging:jar:3.4.2.Final (compile)
[INFO]       └─ jakarta.annotation:jakarta.annotation-api:jar:1.3.5 (compile)
[INFO] ------------------------------------------------------------------------

@knutwannheden
Copy link
Contributor Author

I created a new application using code.quarkus.io only containing quarkus-resteasy. I set the version to 2.2.0.Final and couldn't build it at first. It took me a while to spot that the quarkus.platform.group-id was set to io.quarkus.platform rather than just io.quarkus.

@gsmet
Copy link
Member

gsmet commented Aug 26, 2021

Yes, 2.2.0.Final is not released yet. Only the core artifacts are.

@gsmet
Copy link
Member

gsmet commented Aug 26, 2021

Oh yes, so the problem is different, it's with jansi, not jline.

[INFO]    ├─ io.quarkus:quarkus-core-deployment:jar:2.2.0.Final (compile)
[INFO]    │  ├─ org.aesh:readline:jar:2.1 (compile)
[INFO]    │  │  └─ org.fusesource.jansi:jansi:jar:1.18 (compile)

aesh-readline is using a very old version of jansi: https://github.com/aeshell/aesh-readline/blob/master/pom.xml and I suppose Maven brought a new one... now what changed between 2.1.3.Final and 2.2.0.Final to trigger this issue...

@knutwannheden do you confirm, using the exact same version of Maven, you have 2.1.3.Final working and 2.2.0.Final not working for the same project?

@knutwannheden
Copy link
Contributor Author

Yes, with 2.1.3 and no other changes this works.

@knutwannheden
Copy link
Contributor Author

Output for 2.1.3:

[INFO] --- quarkus-maven-plugin:2.1.3.Final:dependency-tree (default-cli) @ code-with-quarkus ---
[INFO] Quarkus application DEV mode build dependency tree:
[INFO] org.acme:code-with-quarkus:pom:1.0.0-SNAPSHOT
[INFO] ├─ io.quarkus:quarkus-resteasy-deployment:jar:2.1.3.Final (compile)
[INFO] │  ├─ io.quarkus:quarkus-resteasy-server-common-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-common-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-resteasy-common:jar:2.1.3.Final (compile)
[INFO] │  │  │  │  ├─ org.jboss.resteasy:resteasy-core:jar:4.7.0.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:2.0.1.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec:jar:2.0.0.Final (compile)
[INFO] │  │  │  │  │  ├─ org.jboss.resteasy:resteasy-core-spi:jar:4.7.0.Final (compile)
[INFO] │  │  │  │  │  ├─ jakarta.activation:jakarta.activation-api:jar:1.2.1 (compile)
[INFO] │  │  │  │  │  └─ com.ibm.async:asyncutil:jar:0.1.0 (compile)
[INFO] │  │  │  │  └─ com.sun.activation:jakarta.activation:jar:1.2.1 (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-resteasy-common-spi:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-server-common-spi:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-resteasy-server-common:jar:2.1.3.Final (compile)
[INFO] │  │  │  └─ jakarta.validation:jakarta.validation-api:jar:2.0.2 (compile)
[INFO] │  │  └─ io.quarkus:quarkus-undertow-spi:jar:2.1.3.Final (compile)
[INFO] │  │     ├─ io.quarkus.http:quarkus-http-servlet:jar:4.1.1 (compile)
[INFO] │  │     │  └─ io.quarkus.http:quarkus-http-core:jar:4.1.1 (compile)
[INFO] │  │     │     └─ io.quarkus.http:quarkus-http-http-core:jar:4.1.1 (compile)
[INFO] │  │     ├─ jakarta.servlet:jakarta.servlet-api:jar:4.0.3 (compile)
[INFO] │  │     └─ org.jboss.metadata:jboss-metadata-web:jar:11.0.0.Final (compile)
[INFO] │  │        └─ org.jboss.metadata:jboss-metadata-common:jar:11.0.0.Final (compile)
[INFO] │  ├─ io.quarkus:quarkus-vertx-http-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-vertx-core-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-netty-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  │  │  └─ io.quarkus:quarkus-netty:jar:2.1.3.Final (compile)
[INFO] │  │  │  │     └─ io.netty:netty-codec:jar:4.1.65.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-vertx-core:jar:2.1.3.Final (compile)
[INFO] │  │  │     └─ io.netty:netty-codec-haproxy:jar:4.1.65.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-vertx-http:jar:2.1.3.Final (compile)
[INFO] │  │  │  ├─ io.quarkus:quarkus-security-runtime-spi:jar:2.1.3.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-mutiny:jar:2.1.3.Final (compile)
[INFO] │  │  │     ├─ io.quarkus:quarkus-smallrye-context-propagation:jar:2.1.3.Final (compile)
[INFO] │  │  │     │  └─ io.smallrye:smallrye-context-propagation:jar:1.2.0 (compile)
[INFO] │  │  │     │     ├─ io.smallrye:smallrye-context-propagation-api:jar:1.2.0 (compile)
[INFO] │  │  │     │     └─ io.smallrye:smallrye-context-propagation-storage:jar:1.2.0 (compile)
[INFO] │  │  │     └─ io.smallrye.reactive:mutiny-smallrye-context-propagation:jar:0.19.2 (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-mutiny-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  │  └─ io.quarkus:quarkus-smallrye-context-propagation-deployment:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus:quarkus-kubernetes-spi:jar:2.1.3.Final (compile)
[INFO] │  │  ├─ io.quarkus.qute:qute-core:jar:2.1.3.Final (compile)
[INFO] │  │  │  └─ io.smallrye.reactive:mutiny:jar:0.19.2 (compile)
[INFO] │  │  │     ├─ org.reactivestreams:reactive-streams:jar:1.0.3 (compile)
[INFO] │  │  │     └─ io.smallrye.common:smallrye-common-annotation:jar:1.6.0 (compile)
[INFO] │  │  ├─ org.yaml:snakeyaml:jar:1.29 (compile)
[INFO] │  │  └─ com.fasterxml.jackson.core:jackson-databind:jar:2.12.4 (compile)
[INFO] │  │     ├─ com.fasterxml.jackson.core:jackson-annotations:jar:2.12.4 (compile)
[INFO] │  │     └─ com.fasterxml.jackson.core:jackson-core:jar:2.12.4 (compile)
[INFO] │  ├─ io.quarkus:quarkus-resteasy:jar:2.1.3.Final (compile)
[INFO] │  └─ io.quarkus:quarkus-security-spi:jar:2.1.3.Final (compile)
[INFO] │     └─ io.quarkus.security:quarkus-security:jar:1.1.4.Final (compile)
[INFO] └─ io.quarkus:quarkus-arc-deployment:jar:2.1.3.Final (compile)
[INFO]    ├─ io.quarkus:quarkus-core-deployment:jar:2.1.3.Final (compile)
[INFO]    │  ├─ org.aesh:readline:jar:2.1 (compile)
[INFO]    │  │  └─ org.fusesource.jansi:jansi:jar:1.18 (compile)
[INFO]    │  ├─ org.apache.commons:commons-lang3:jar:3.12.0 (compile)
[INFO]    │  ├─ org.wildfly.common:wildfly-common:jar:1.5.4.Final-format-001 (compile)
[INFO]    │  ├─ io.quarkus.gizmo:gizmo:jar:1.0.9.Final (compile)
[INFO]    │  │  └─ org.ow2.asm:asm-util:jar:9.1 (compile)
[INFO]    │  │     ├─ org.ow2.asm:asm-tree:jar:9.1 (compile)
[INFO]    │  │     └─ org.ow2.asm:asm-analysis:jar:9.1 (compile)
[INFO]    │  ├─ org.jboss:jandex:jar:2.3.0.Final (compile)
[INFO]    │  ├─ org.ow2.asm:asm:jar:9.1 (compile)
[INFO]    │  ├─ io.quarkus:quarkus-development-mode-spi:jar:2.1.3.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-class-change-agent:jar:2.1.3.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-bootstrap-core:jar:2.1.3.Final (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-app-model:jar:2.1.3.Final (compile)
[INFO]    │  │  │  └─ org.jboss.logging:commons-logging-jboss-logging:jar:1.0.0.Final (runtime)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-maven-resolver:jar:2.1.3.Final (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-embedder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-settings:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-core:jar:3.8.1 (compile)
[INFO]    │  │  │  │  │  ├─ org.apache.maven:maven-artifact:jar:3.8.1 (compile)
[INFO]    │  │  │  │  │  └─ org.codehaus.plexus:plexus-component-annotations:jar:2.1.0 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-plugin-api:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-model:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-model-builder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-builder-support:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-api:jar:1.6.2 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-util:jar:1.6.2 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.shared:maven-shared-utils:jar:3.3.3 (compile)
[INFO]    │  │  │  │  │  └─ commons-io:commons-io:jar:2.11.0 (compile)
[INFO]    │  │  │  │  ├─ com.google.inject:guice:jar:no_aop:4.2.1 (compile)
[INFO]    │  │  │  │  │  └─ com.google.guava:guava:jar:30.1.1-jre (compile)
[INFO]    │  │  │  │  │     ├─ com.google.guava:failureaccess:jar:1.0.1 (compile)
[INFO]    │  │  │  │  │     └─ com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-utils:jar:3.2.1 (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-classworlds:jar:2.6.0 (compile)
[INFO]    │  │  │  │  └─ commons-cli:commons-cli:jar:1.4 (compile)
[INFO]    │  │  │  ├─ org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4 (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-settings-builder:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.codehaus.plexus:plexus-interpolation:jar:1.25 (compile)
[INFO]    │  │  │  │  └─ org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4 (compile)
[INFO]    │  │  │  │     └─ org.sonatype.plexus:plexus-cipher:jar:1.4 (compile)
[INFO]    │  │  │  ├─ org.apache.maven:maven-resolver-provider:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven:maven-repository-metadata:jar:3.8.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.resolver:maven-resolver-spi:jar:1.6.2 (compile)
[INFO]    │  │  │  │  └─ org.apache.maven.resolver:maven-resolver-impl:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.resolver:maven-resolver-transport-wagon:jar:1.6.2 (compile)
[INFO]    │  │  │  ├─ org.apache.maven.wagon:wagon-http:jar:3.4.3 (compile)
[INFO]    │  │  │  │  ├─ org.apache.maven.wagon:wagon-http-shared:jar:3.4.3 (compile)
[INFO]    │  │  │  │  │  └─ org.jsoup:jsoup:jar:1.12.1 (compile)
[INFO]    │  │  │  │  ├─ org.apache.httpcomponents:httpclient:jar:4.5.13 (compile)
[INFO]    │  │  │  │  │  └─ commons-codec:commons-codec:jar:1.15 (compile)
[INFO]    │  │  │  │  ├─ org.apache.httpcomponents:httpcore:jar:4.4.14 (compile)
[INFO]    │  │  │  │  └─ org.apache.maven.wagon:wagon-provider-api:jar:3.4.3 (compile)
[INFO]    │  │  │  └─ org.apache.maven.wagon:wagon-file:jar:3.4.3 (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-bootstrap-gradle-resolver:jar:2.1.3.Final (compile)
[INFO]    │  │  └─ io.smallrye.common:smallrye-common-io:jar:1.6.0 (compile)
[INFO]    │  ├─ io.quarkus:quarkus-devtools-utilities:jar:2.1.3.Final (compile)
[INFO]    │  ├─ org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4 (runtime)
[INFO]    │  ├─ io.quarkus:quarkus-core:jar:2.1.3.Final (compile)
[INFO]    │  │  ├─ jakarta.inject:jakarta.inject-api:jar:1.0 (compile)
[INFO]    │  │  ├─ io.quarkus:quarkus-ide-launcher:jar:2.1.3.Final (compile)
[INFO]    │  │  ├─ io.smallrye.config:smallrye-config:jar:2.4.3 (compile)
[INFO]    │  │  │  └─ io.smallrye.config:smallrye-config-core:jar:2.4.3 (compile)
[INFO]    │  │  │     ├─ org.eclipse.microprofile.config:microprofile-config-api:jar:2.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-expression:jar:1.6.0 (compile)
[INFO]    │  │  │     │  └─ io.smallrye.common:smallrye-common-function:jar:1.6.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-constraint:jar:1.6.0 (compile)
[INFO]    │  │  │     ├─ io.smallrye.common:smallrye-common-classloader:jar:1.6.0 (compile)
[INFO]    │  │  │     └─ io.smallrye.config:smallrye-config-common:jar:2.4.3 (compile)
[INFO]    │  │  ├─ org.jboss.logmanager:jboss-logmanager-embedded:jar:1.0.9 (compile)
[INFO]    │  │  ├─ org.jboss.logging:jboss-logging-annotations:jar:2.2.1.Final (compile)
[INFO]    │  │  ├─ org.jboss.threads:jboss-threads:jar:3.4.2.Final (compile)
[INFO]    │  │  ├─ org.slf4j:slf4j-api:jar:1.7.30 (compile)
[INFO]    │  │  ├─ org.jboss.slf4j:slf4j-jboss-logmanager:jar:1.1.0.Final (compile)
[INFO]    │  │  └─ io.quarkus:quarkus-bootstrap-runner:jar:2.1.3.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-builder:jar:2.1.3.Final (compile)
[INFO]    │  ├─ org.graalvm.sdk:graal-sdk:jar:21.1.0 (compile)
[INFO]    │  ├─ org.junit.platform:junit-platform-launcher:jar:1.7.2 (compile)
[INFO]    │  │  ├─ org.apiguardian:apiguardian-api:jar:1.1.0 (compile)
[INFO]    │  │  └─ org.junit.platform:junit-platform-engine:jar:1.7.2 (compile)
[INFO]    │  │     ├─ org.opentest4j:opentest4j:jar:1.2.0 (compile)
[INFO]    │  │     └─ org.junit.platform:junit-platform-commons:jar:1.7.2 (compile)
[INFO]    │  └─ org.junit.jupiter:junit-jupiter:jar:5.7.2 (compile)
[INFO]    │     ├─ org.junit.jupiter:junit-jupiter-api:jar:5.7.2 (compile)
[INFO]    │     ├─ org.junit.jupiter:junit-jupiter-params:jar:5.7.2 (compile)
[INFO]    │     └─ org.junit.jupiter:junit-jupiter-engine:jar:5.7.2 (runtime)
[INFO]    ├─ io.quarkus:quarkus-vertx-http-dev-console-spi:jar:2.1.3.Final (compile)
[INFO]    │  ├─ io.quarkus:quarkus-vertx-http-dev-console-runtime-spi:jar:2.1.3.Final (compile)
[INFO]    │  ├─ io.quarkus.arc:arc:jar:2.1.3.Final (compile)
[INFO]    │  │  └─ jakarta.transaction:jakarta.transaction-api:jar:1.3.3 (compile)
[INFO]    │  └─ io.vertx:vertx-web:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-web-common:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-auth-common:jar:4.1.2 (compile)
[INFO]    │     ├─ io.vertx:vertx-bridge-common:jar:4.1.2 (compile)
[INFO]    │     └─ io.vertx:vertx-core:jar:4.1.2 (compile)
[INFO]    │        ├─ io.netty:netty-common:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-buffer:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-transport:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-handler:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-handler-proxy:jar:4.1.65.Final (compile)
[INFO]    │        │  └─ io.netty:netty-codec-socks:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-codec-http:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-codec-http2:jar:4.1.65.Final (compile)
[INFO]    │        ├─ io.netty:netty-resolver:jar:4.1.65.Final (compile)
[INFO]    │        └─ io.netty:netty-resolver-dns:jar:4.1.65.Final (compile)
[INFO]    │           └─ io.netty:netty-codec-dns:jar:4.1.65.Final (compile)
[INFO]    ├─ io.quarkus:quarkus-arc:jar:2.1.3.Final (compile)
[INFO]    │  └─ org.eclipse.microprofile.context-propagation:microprofile-context-propagation-api:jar:1.2 (compile)
[INFO]    └─ io.quarkus.arc:arc-processor:jar:2.1.3.Final (compile)
[INFO]       ├─ jakarta.enterprise:jakarta.enterprise.cdi-api:jar:2.0.2 (compile)
[INFO]       │  ├─ jakarta.el:jakarta.el-api:jar:3.0.3 (compile)
[INFO]       │  └─ jakarta.interceptor:jakarta.interceptor-api:jar:1.2.5 (compile)
[INFO]       ├─ org.jboss.logging:jboss-logging:jar:3.4.2.Final (compile)
[INFO]       └─ jakarta.annotation:jakarta.annotation-api:jar:1.3.5 (compile)
[INFO] ------------------------------------------------------------------------

@aloubyansky
Copy link
Member

@knutwannheden could you try adding the dependency on jansi to the quarkus-maven-plugin, e.g.

      <plugin>
        <groupId>${quarkus.platform.group-id}</groupId>
        <artifactId>quarkus-maven-plugin</artifactId>
        <version>${quarkus.platform.version}</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>build</goal>
              <goal>generate-code</goal>
              <goal>generate-code-tests</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.fusesource.jansi</groupId>
            <artifactId>jansi</artifactId>
            <version>1.18</version>
          </dependency>
        </dependencies>
      </plugin>

@knutwannheden
Copy link
Contributor Author

I just ran this again now and the error is slightly different from what I originally reported: [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev (default-cli) on project code-with-quarkus: Execution default-cli of goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev failed: A required class was missing while executing io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev: org/fusesource/jansi/WindowsAnsiOutputStream.

Here are the relevant parts from the stack trace:

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:169)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NoClassDefFoundError: org/fusesource/jansi/WindowsAnsiOutputStream
    at org.aesh.readline.terminal.TerminalBuilder.createWindowsTerminal (TerminalBuilder.java:148)
    at org.aesh.readline.terminal.TerminalBuilder.build (TerminalBuilder.java:117)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:91)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:108)
    at io.quarkus.maven.DevMojo.saveTerminalState (DevMojo.java:430)
    at io.quarkus.maven.DevMojo.execute (DevMojo.java:336)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.WindowsAnsiOutputStream
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at org.aesh.readline.terminal.TerminalBuilder.createWindowsTerminal (TerminalBuilder.java:148)
    at org.aesh.readline.terminal.TerminalBuilder.build (TerminalBuilder.java:117)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:91)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:108)
    at io.quarkus.maven.DevMojo.saveTerminalState (DevMojo.java:430)
    at io.quarkus.maven.DevMojo.execute (DevMojo.java:336)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

@knutwannheden
Copy link
Contributor Author

@knutwannheden could you try adding the dependency on jansi to the quarkus-maven-plugin, e.g.

I just tried that, but it doesn't help.

@knutwannheden
Copy link
Contributor Author

I just ran this again now and the error is slightly different from what I originally reported: [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev (default-cli) on project code-with-quarkus: Execution default-cli of goal io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev failed: A required class was missing while executing io.quarkus:quarkus-maven-plugin:2.2.0.Final:dev: org/fusesource/jansi/WindowsAnsiOutputStream.

I have no idea why the error is slightly different now...

@aloubyansky
Copy link
Member

And what if you try

      <plugin>
        <groupId>${quarkus.platform.group-id}</groupId>
        <artifactId>quarkus-maven-plugin</artifactId>
        <version>${quarkus.platform.version}</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>build</goal>
              <goal>generate-code</goal>
              <goal>generate-code-tests</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>jline</groupId>
            <artifactId>jline</artifactId>
            <version>2.14.6</version>
          </dependency>
        </dependencies>
      </plugin>

@aloubyansky
Copy link
Member

Do you launch it with mvn clean?

@knutwannheden
Copy link
Contributor Author

With that jline:jline:2.14.6 dependency it now works!

@aloubyansky
Copy link
Member

That's what has changed.

@knutwannheden
Copy link
Contributor Author

It also works with Maven 3.8.2 that way.

@knutwannheden
Copy link
Contributor Author

I have no idea why the error is slightly different now...

I got this other error message when I tested with Maven 3.8.2. The initially reported error is what I got with Maven 3.6.2 and 3.8.1. AFAIK currently Maven 3.8.1 is still recommended.

@aloubyansky
Copy link
Member

It's not the issue with the app classpath, it's the plugin classpath.

@aloubyansky
Copy link
Member

@knutwannheden you should be able to reproduce it using the main branch, right? Would you be able to test a change?

@knutwannheden
Copy link
Contributor Author

@knutwannheden you should be able to reproduce it using the main branch, right? Would you be able to test a change?

Yes, I can probably do that.

@aloubyansky
Copy link
Member

aloubyansky commented Aug 26, 2021

Here is a quick & dirty attempt to switch to Aesh (already used in quarkus-core-deployment) from JLine for the Prompter. @knutwannheden would you mind giving another try to this branch? https://github.com/aloubyansky/quarkus/tree/exclude-jline-from-maven-plugin

@yuhaibohotmail
Copy link

Here is a quick & dirty attempt to switch to Aesh (already used in quarkus-core-deployment) from JLine for the Prompter. @knutwannheden would you mind giving another try to this branch? https://github.com/aloubyansky/quarkus/tree/exclude-jline-from-maven-plugin

It report error with maven-3.8.2 , 3.8.1 or 3.6.3.

@knutwannheden
Copy link
Contributor Author

@aloubyansky Same here: Same error with your new commit.

@aloubyansky
Copy link
Member

I am moving the Prompter class back to the quarkus-maven-plugin and switching to Aesh. Aesh is already a dependency of quarkus-core-deployment.

@aloubyansky
Copy link
Member

Could somebody please test this aloubyansky@4b37776 and if it fails post the complete stacktrace? Thanks.

@knutwannheden
Copy link
Contributor Author

AFAICT the exception is still the same:

Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.internal.Kernel32
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at org.aesh.readline.terminal.impl.WinSysTerminal.setVTMode (WinSysTerminal.java:131)
    at org.aesh.readline.terminal.impl.WinSysTerminal.<init> (WinSysTerminal.java:46)
    at org.aesh.readline.terminal.impl.WinSysTerminal.<init> (WinSysTerminal.java:42)
    at org.aesh.readline.terminal.TerminalBuilder.createWindowsTerminal (TerminalBuilder.java:148)
    at org.aesh.readline.terminal.TerminalBuilder.build (TerminalBuilder.java:117)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:91)
    at org.aesh.readline.tty.terminal.TerminalConnection.<init> (TerminalConnection.java:108)
    at io.quarkus.maven.DevMojo.saveTerminalState (DevMojo.java:430)
    at io.quarkus.maven.DevMojo.execute (DevMojo.java:336)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

I haven't stepped through the code, but is it really related to the Prompter?

@aloubyansky
Copy link
Member

It doesn't look like it anymore. There is no jline anymore shading another version of jansi.

@aloubyansky
Copy link
Member

aloubyansky commented Aug 27, 2021

It looks like my current branch at https://github.com/aloubyansky/quarkus/commits/exclude-jline-from-maven-plugin is working for @knutwannheden
The changes are:

  • removed jline completely
  • moved the Prompter back to the quarkus-maven-plugin (otherwise we'll need extra dependencies in devtools-common for no reason)
  • shaded jansi into the quarkus-maven-plugin

@yuhaibohotmail will you be able to confirm whether the branch works for you as well, just in case?

I'll look into cleaning it up then and prepare a PR.

@yuhaibohotmail
Copy link

It looks like my current branch at https://github.com/aloubyansky/quarkus/commits/exclude-jline-from-maven-plugin is working for @knutwannheden
The changes are:

  • removed jline completely
  • moved the Prompter back to the quarkus-maven-plugin (otherwise we'll need extra dependencies in devtools-common for no reason)
  • shaded jansi into the quarkus-maven-plugin

@yuhaibohotmail will you be able to confirm whether the branch works for you as well, just in case?

I'll look into cleaning it up then and prepare a PR.

It work for me, thanks!

@aloubyansky
Copy link
Member

Thanks @yuhaibohotmail!

@hikemachado
Copy link

I'm having same problem on windows 10
java 11
Quarkus 2.1.4
maven 3.6.3

this #19673 (comment)
worked here

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devmode env/windows Impacts Windows machines kind/bug Something isn't working
Projects
None yet
6 participants