You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the latest changes in Hilla endpoints discovery, the projects that use flow-maven-plugin and vaadin-spring-boot-starter (e.g. MPR + Spring projects) are failing with
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.tools.MainClassFinder
at jdk.internal.loader.BuiltinClassLoader.loadClass (BuiltinClassLoader.java:641)
at java.lang.ClassLoader.loadClass (ClassLoader.java:525)
at com.vaadin.flow.plugin.maven.Reflector$CombinedClassLoader.loadClass (Reflector.java:392)
at com.vaadin.hilla.engine.AotBrowserCallableFinder.determineApplicationClass (AotBrowserCallableFinder.java:59)
at com.vaadin.hilla.engine.AotBrowserCallableFinder.findEndpointClasses (AotBrowserCallableFinder.java:36)
at com.vaadin.hilla.engine.EngineConfiguration.lambda$getBrowserCallableFinder$1 (EngineConfiguration.java:130)
at com.vaadin.hilla.internal.TaskGenerateOpenAPIImpl.execute (TaskGenerateOpenAPIImpl.java:64)
at com.vaadin.flow.server.frontend.NodeTasks.execute (NodeTasks.java:347)
at com.vaadin.flow.plugin.base.BuildFrontendUtil.runNodeUpdater (BuildFrontendUtil.java:364)
at com.vaadin.flow.plugin.maven.BuildFrontendMojo.executeInternal (BuildFrontendMojo.java:143)
Note: MPR project uses flow-maven-plugin, because they need to also run the V8 vaadin-maven-plugin.
The problem happens if the project is using vaadin-spring-boot-starter.
When building for production the Hilla's TaskGenerateOpenAPIImpl is called and it fails because of java.lang.ClassNotFoundException: org.springframework.boot.loader.tools.MainClassFinder.
The easy fix is to exclude Hilla from a project, but it's a breaking change.
Expected-behavior
Project should not fail event though it's being build with flow-maven-plugin instead of vaadin-maven-plugin.
Reproduction
Can be reproduced with the MPR test module Session IT.
System Info
Vaadin 24.7.0.alpha7 or 24.7-SNAPSHOT.
The text was updated successfully, but these errors were encountered:
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
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
Describe the bug
Due to the latest changes in Hilla endpoints discovery, the projects that use
flow-maven-plugin
andvaadin-spring-boot-starter
(e.g. MPR + Spring projects) are failing withNote: MPR project uses
flow-maven-plugin
, because they need to also run the V8vaadin-maven-plugin
.The problem happens if the project is using
vaadin-spring-boot-starter
.When building for production the Hilla's
TaskGenerateOpenAPIImpl
is called and it fails because ofjava.lang.ClassNotFoundException: org.springframework.boot.loader.tools.MainClassFinder
.The easy fix is to exclude Hilla from a project, but it's a breaking change.
Expected-behavior
Project should not fail event though it's being build with
flow-maven-plugin
instead ofvaadin-maven-plugin
.Reproduction
Can be reproduced with the MPR test module Session IT.
System Info
Vaadin 24.7.0.alpha7 or 24.7-SNAPSHOT.
The text was updated successfully, but these errors were encountered: