-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix: prevent failure when Spring MainClassFinder is not available #3210
fix: prevent failure when Spring MainClassFinder is not available #3210
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3210 +/- ##
=======================================
Coverage 86.91% 86.91%
=======================================
Files 118 118
Lines 8191 8191
Branches 1256 1256
=======================================
Hits 7119 7119
Misses 1058 1058
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
If AotBrowserCallableFinder is invoked by flow-maven-plugin, it fails because the dependency to org.springframework.boot:spring-boot-loader-tools that contains the MainClassFinder is provided only by hilla-maven-plugin and vaadin-maven-plugin. This can happen for example in MPR projects that are forced to use flow-maven-plugin because they require the Vaadin 8 version of vaadin-maven-plugin. This change catches the failure and provide some insight on how to potentially fix the issue, by excluding Hilla or using hilla-maven-plugin. Fixes #3206
18489b2
to
be3f8d8
Compare
packages/java/engine-core/src/main/java/com/vaadin/hilla/engine/AotBrowserCallableFinder.java
Outdated
Show resolved
Hide resolved
|
This ticket/PR has been released with Hilla 24.7.0.alpha12 and is also targeting the upcoming stable 24.7.0 version. |
Description
If AotBrowserCallableFinder is invoked by flow-maven-plugin, it fails because the dependency to
org.springframework.boot:spring-boot-loader-tools that contains the MainClassFinder is provided only by hilla-maven-plugin and vaadin-maven-plugin.
This can happen for example in MPR projects that are forced to use flow-maven-plugin because they require the Vaadin 8 version of vaadin-maven-plugin.
This change catches the failure and provide some insight on how to potentially fix the issue, by excluding Hilla or using hilla-maven-plugin.
Fixes #3206
Type of change
Checklist
Additional for
Feature
type of change