quarkus: Crash during mvn io.quarkus-maven-plugin:2.1.2.Final:create
Describe the bug
The maven plugin crashes in Windows Powershell when I try to create a new project.
Expected behavior
No response
Actual behavior
The maven process crashes with the following exception:
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.NoSuchMethodError: 'java.io.OutputStream org.fusesource.jansi.AnsiConsole.wrapOutputStream(java.io.OutputStream)'
at io.quarkus.maven.components.Prompter.<init>(Unknown Source)
while locating io.quarkus.maven.components.Prompter
while locating io.quarkus.maven.CreateProjectMojo
...
How to Reproduce?
Open up a Powershell instance. Then execute the following command:
mvn io.quarkus:quarkus-maven-plugin:2.1.2.Final:create `
-DprojectGroupId="com.infosupport.pitstop.customermanagement" `
-DprojectArtifactId="customer-management" `
-DclassName="com.infosupport.pitstop.customermanagement.CustomersResource" `
-Dpath="customer-management"clear
Output of uname -a or ver
Microsoft Windows [Version 10.0.19043.1110]
Output of java -version
openjdk version “16.0.1” 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Additional information
Powershell version: 5.1.19041.1023
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (14 by maintainers)
Thank you both for testing.
I can confirm that this does not occur with 3.8.1. This only occurs when Maven 3.8.2 is used
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) works.
I’ll open a PR shortly and we can decide how to go about it.
For the sake of reference for others, here’s the actual stacktrace it generates: