-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus cant be launched with Main-Class with gradle #10602
Comments
/cc @quarkusio/devtools |
Should be fixed with #10459 |
I updated my project to 1.7.0 and I still have this problem. now in the BootstrapAppModelFactory class in createBootstrapMavenContext method in line 211 projectPom is null and in line 216 the BootstrapMavenContext constructor returns null. |
@glefloch will you have time to look into this one? |
@aloubyansky yes I will |
@hosseinmp76, could you upload a reproducer ? |
Thanks @hosseinmp76. I'm on the #11310 right now. Once I have a fix. I will try the fix on your project. |
@hosseinmp76, I have a working fix for #11310. I cloned your project and I was able to reproduce your error. Replacing your
|
@glefloch thank you. it works for me. |
Implementing Closing this issue now. Thank you! |
But the doc says: If a class that implements QuarkusApplication and has a Java main then the Java main will be run. so I can't see any problem with having PSVM and extending the class. maybe doc should be changed. |
Hm, you're right. I'll have a deeper look but if that's the case the docs should definitely be changed |
when I want to start quarkus with a gradle based project I get this is the exception:
I track the problem and I found in
BootstrapAppModelFactory
class at line 211 in method createBootstrapMavenContext it can't find pom.xml (its gradle project) so it make a new BootstrapMavenContext. and it uses resolveCurrentProject() that itself callsLocalProject.loadWorkspace and it returns null because:
I have this problem with 1.5.0 & 1.5.2 & 1.6.0 versions.
I can publish my project if you can't reproduce the bug.
when use gradle to start (I mean removing @ QuarkusMain ) the projects starts with ./gradlew quarkusDev with no problem but after using this approach despite the the above problem when I use ./gradlew quarkusDev the projects start normally but when I use browser I get this exception:
maybe this is related to #9974
The text was updated successfully, but these errors were encountered: