-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error upgrading from 3.5.3 to 3.6.1 / running 3.6.1 #37602
Comments
/cc @quarkusio/devtools (maven) |
cc @aloubyansky |
It looks like the error I had when a Maven plugin was built with Java 17. I need to check the platform plugin Pom. |
I tried it last night but could not reproduce it with mvnd, mvn 3.9.6 or vm wrapper 3.9.5. Did mvn package and mvn quarkus:dev |
Yeah, it's not an obvious issue as I created a small app with Java 11 and everything worked flawlessly so the plugin is fine. |
Same here, I cannot reproduce it with the provided reproducer. @fordsworth you're positive you can reproduce it with your git repo? |
Yes. I am constantly reproducing it. I will try to remove all my local Maven dependencies and retry. |
I am gonna close this. Its something specific to my pc. I will investigate to see why this is happening. If I run this on a different pc i can't reproduce |
@fordsworth I got the exact same issue and I'm also on MacOS "Darwin Thore-MBP-2019.local 23.1.0 Darwin Kernel Version 23.1.0" Reverting back to 3.5.x works, but 3.6.x fails the exactly same way as for you. So if you manage to find a solution / workaround please share.
|
I have been trying all sorts of things but no solution to this. It seems to be a specific to Mac OS. I wonder if there is someone else running the same version who doesn't have the problem |
@teedjay are you using Java 21 too? |
I checked the jar and it looks OK to me. I'll look a bit deeper by comparing both jars with pkgdiff. @teedjay please give us more information about your environment and check if it's similar to what @fordsworth described in the description of the issue. |
Mmmmh, I see that all the Maven dependencies were updated to 3.9.6 and that also That's the only changes that I can see in the jars. @teedjay @fordsworth can you confirm that both 3.6.0 and 3.6.1 fail for you or if it's just 3.6.1? |
If it's the Maven 3.9.6 upgrade, then only 3.6.1 would be affected (as per #37449). |
@gsmet I will check and revert |
Hi, Thanks for interest in this issue! I just tested with a new blank project directly from code.quarkus.io (no config or extension changes, just selecting "download as zip"), and got the exact same issue. The Intel Mac with latest Sonoma :
My Java versions (have same issue with both) :
I'm compiling using Maven Wrapper that came with the project, and it fails even on a simple Full output is when using Java 21 is :
A couple of other point :
|
I can confirm I had same issue with 3.6.0 (was hoping 3.6.1 would fix it). |
For me its the same hello world project from quarkus.io fails for both 3.6.0 and 3.6.1 |
Could you try with Apache Maven 3.9.5 instead of 3.9.6? |
Same result with Maven 3.9.5 (and also when using 3.9.3 which I have locally installed)
|
This is very weird... |
@teedjay oh wait, can you try with Apache Maven 3.9.5 and Quarkus 3.6.0 to avoid anything from 3.9.6 around? |
Same issue with that combination :
|
I'm a bit out of ideas here... @aloubyansky do you see anything that could cause this? |
Just for the record, same code with quarkus project with Maven 3.9.6, Java 21 with Quarkus 3.5.3 works great ...
|
OK, so if we summarize:
Sounds about right? |
I don't have a macOS right here to try it myself but if somebody could try downgrading the following dependencies (just copy the
|
No dice, same issue with explicit versions. The plugin section ended up like this :
Btw - noticed there were still some sisu 0.9.0.M2 references in the dependency tree, likt this :
|
And same result with latest Quarkus 3.6.4 and latest MacOS patch 14.2.1 (23C71). |
Did a bit of digging around on my two Mac's and it seems the problem is caused by a corrupt / empty Guava jar artifact in my local maven repository. By removing the affected Guava version like shown below I'm able to upgrade to Quarkus 3.6.4.
@fordsworth Could it be that you got the same corruption issue? |
@teedjay thanks had the same issue. I ended up just cleaning the whole.m2 directory and that resolved the issue. |
I was having the same issue on github action and quarkus:go-offine step. It has ubuntu-22.04 linux runner and empty .m2 repository. The issue was that the runner comes with java 17 (project is configured to 21 but the runner only installs dependencies). After upgrading to Java 21 (Corretto) the issue went away. Quarkus 3.8.4. |
Describe the bug
I am unable to build a new project on quarkus 3.6.1 downloaded from quarkus.io or
I am not able to upgrade my project as well.
However if I change the <quarkus.platform.version>3.6.1</quarkus.platform.version> back to <quarkus.platform.version>3.5.3</quarkus.platform.version> I am able to build the project
Here is a link to a sample project
Reproducer
https://github.com/fordsworth/quarkus-3.6.1-upgrade.git
Expected behavior
The project should boot up and start on port 8080
Actual behavior
mvn quarkus:dev
[INFO] Scanning for projects...
[WARNING] ClassRealm[extension>io.quarkus.platform:quarkus-maven-plugin:3.6.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1cf4f579]
com.google.inject.CreationException: Unable to create injector, see the following errors:
Did you mean?
QuarkusBootstrapProvider bound at LocatorWiring
Requested by:
1 : LocatorWiring
Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION
1 error
======================
Full classname legend:
LocatorWiring: "org.eclipse.sisu.wire.LocatorWiring"
QuarkusBootstrapProvider: "io.quarkus.maven.QuarkusBootstrapProvider"
TypeArguments$Implicit: "org.eclipse.sisu.inject.TypeArguments$Implicit"
End of classname legend:
[INFO]
[INFO] ---------------------< org.acme:code-with-quarkus >---------------------
[INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus:3.6.1:dev (default-cli) @ code-with-quarkus ---
[WARNING] ClassRealm[plugin>io.quarkus.platform:quarkus-maven-plugin:3.6.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1cf4f579]
com.google.inject.CreationException: Unable to create injector, see the following errors:
Did you mean?
QuarkusBootstrapProvider bound at LocatorWiring
Requested by:
1 : LocatorWiring
Learn more:
https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION
1 error
======================
Full classname legend:
LocatorWiring: "org.eclipse.sisu.wire.LocatorWiring"
QuarkusBootstrapProvider: "io.quarkus.maven.QuarkusBootstrapProvider"
TypeArguments$Implicit: "org.eclipse.sisu.inject.TypeArguments$Implicit"
End of classname legend:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.739 s
[INFO] Finished at: 2023-12-08T07:24:13+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.6.1:dev (default-cli) on project code-with-quarkus: Execution default-cli of goal io.quarkus.platform:quarkus-maven-plugin:3.6.1:dev failed: Unable to load the mojo 'dev' (or one of its required components) from the plugin 'io.quarkus.platform:quarkus-maven-plugin:3.6.1': java.util.NoSuchElementException
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: io.quarkus.platform:quarkus-maven-plugin:3.6.1:dev
[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
How to Reproduce?
quarkus io sample project with quarkus-resteasy-reactive dependency
run either
quarkus dev / mvn quarkus:dev on the command line
Output of
uname -a
orver
Darwin kc-Mackbook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64
Output of
java -version
❯ java -version java version "21.0.1" 2023-10-17 LTS Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29) Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)
Quarkus version or git rev
3.6.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered: